Browse Source

add service example

master
tjiho 1 year ago
parent
commit
1f7f73a3e9
  1. 16
      lamp.service.example

16
lamp.service.example

@ -0,0 +1,16 @@
[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
Loading…
Cancel
Save