Nikola Kotur преди 3 години
родител
ревизия
f57ff40dc8
променени са 1 файла, в които са добавени 17 реда и са изтрити 0 реда
  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