Explorar el Código

Added systemd service

Nikola Kotur hace 3 años
padre
commit
f57ff40dc8
Se han modificado 1 ficheros con 17 adiciones y 0 borrados
  1. 17 0
      dashcam.service

+ 17 - 0
dashcam.service

@@ -0,0 +1,17 @@
+# Place it in /etc/systemd/system, and start:
+# systemctl daemon-reload
+# systemctl enable dashcam
+# systemctl start dashcam
+
+[Unit]
+Description=Dashcam sync
+After=network.target
+
+[Install]
+WantedBy=multi-user.target
+
+[Service]
+Type=simple
+Restart=always
+RestartSec=5
+ExecStart=/home/kotnik/repos/dashcam/sync.py --ftp-password YOUR_FTP_PASSWORD