Add systemd service
This commit is contained in:
parent
ff75b702f1
commit
ef67faf6f8
15
kdoorpi.service
Normal file
15
kdoorpi.service
Normal file
@ -0,0 +1,15 @@
|
||||
# /etc/systemd/system/kdoorpi.service
|
||||
[Unit]
|
||||
Description=Kdoorpi service
|
||||
Requires=pigpiod.service
|
||||
After=pigpiod.service
|
||||
|
||||
[Service]
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
ExecStart=/home/pi/kdoorpi/run.sh
|
||||
WorkingDirectory=/home/pi/kdoorpi
|
||||
User=pi
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user