Browse Source

Added systemd unit file

pull/1/head
Ravi Shah 5 years ago
parent
commit
4682fc5d16
  1. 14
      garage-door-controller.service

14
garage-door-controller.service

@ -0,0 +1,14 @@
[Unit]
Description=Control and monitor the state of your smart garage door opener
After=network.target
[Service]
ExecStart=/usr/bin/python3 -u garage_door_script.py
WorkingDirectory=/home/pi/garagedoor
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save