totoro_lamp/lamp.service.example

17 lines
273 B
Plaintext

[Unit]
Description=lamp
After=network.target
[Service]
Type=simple
KillMode=mixed
User=pi
ExecStart=/home/pi/totoro_lamp/env/bin/python /home/pi/totoro_lamp/server.py
WorkingDirectory=/home/pi/totoro_lamp
Restart=on-failure
[Install]
WantedBy=multi-user.target