Browse Source

Added systemd service

Nikola Kotur 3 năm trước cách đây
mục cha
commit
f57ff40dc8
1 tập tin đã thay đổi với 17 bổ sung0 xóa
  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