diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-06-03 01:00:49 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-06-03 01:00:49 +0300 |
commit | 3e3753d726f8a02d98368f20f77dd9fa739e3d80 (patch) | |
tree | 09622bb713c8065952cf9cb37111285a5389bf09 /misc/scripts/ipcam_capture_restart.sh | |
parent | a1c7aff91f38473481590489f41b86d41df9a29d (diff) |
add various scripts to not lose them
Diffstat (limited to 'misc/scripts/ipcam_capture_restart.sh')
-rw-r--r-- | misc/scripts/ipcam_capture_restart.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/scripts/ipcam_capture_restart.sh b/misc/scripts/ipcam_capture_restart.sh new file mode 100644 index 0000000..85144da --- /dev/null +++ b/misc/scripts/ipcam_capture_restart.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +for f in $(ls /etc/ipcam_capture.conf.d/ | xargs); do + camera="${f/.conf/}" + echo "restarting $camera" + systemctl restart ipcam_capture@${camera} +done
\ No newline at end of file |