diff --git a/garage-door-controller.service b/garage-door-controller.service new file mode 100644 index 0000000..e41bb46 --- /dev/null +++ b/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