Browse Source

Added systemd service

Nikola Kotur 3 years ago
parent
commit
f57ff40dc8
1 changed files with 17 additions and 0 deletions
  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