summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/ipcam_capture@.service2
-rw-r--r--systemd/ipcam_rtsp2hls@.service1
-rw-r--r--systemd/ipcam_server.service3
3 files changed, 4 insertions, 2 deletions
diff --git a/systemd/ipcam_capture@.service b/systemd/ipcam_capture@.service
index 9196613..b1c363e 100644
--- a/systemd/ipcam_capture@.service
+++ b/systemd/ipcam_capture@.service
@@ -4,12 +4,12 @@ After=network-online.target
[Service]
Restart=always
+RestartSec=3
User=user
Group=user
EnvironmentFile=/etc/ipcam_capture.conf.d/%i.conf
ExecStart=/home/user/homekit/tools/ipcam_capture.sh --outdir $OUTDIR --creds $CREDS --ip $IP --port $PORT $ARGS
Restart=always
-RestartSec=2
[Install]
WantedBy=multi-user.target
diff --git a/systemd/ipcam_rtsp2hls@.service b/systemd/ipcam_rtsp2hls@.service
index 244a192..addd819 100644
--- a/systemd/ipcam_rtsp2hls@.service
+++ b/systemd/ipcam_rtsp2hls@.service
@@ -4,6 +4,7 @@ After=network-online.target
[Service]
Restart=always
+RestartSec=3
User=user
Group=user
EnvironmentFile=/etc/ipcam_rtsp2hls.conf.d/%i.conf
diff --git a/systemd/ipcam_server.service b/systemd/ipcam_server.service
index 8897363..07ac95f 100644
--- a/systemd/ipcam_server.service
+++ b/systemd/ipcam_server.service
@@ -5,7 +5,8 @@ After=network-online.target
[Service]
User=user
Group=user
-Restart=on-failure
+Restart=always
+RestartSec=10
ExecStart=/home/user/homekit/src/ipcam_server.py
WorkingDirectory=/home/user