summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-06-03 01:00:49 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-06-03 01:00:49 +0300
commit3e3753d726f8a02d98368f20f77dd9fa739e3d80 (patch)
tree09622bb713c8065952cf9cb37111285a5389bf09 /systemd
parenta1c7aff91f38473481590489f41b86d41df9a29d (diff)
add various scripts to not lose them
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