aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Sorokin <me@ch1p.io>2024-01-25 16:31:02 +0300
committerEvgeny Sorokin <me@ch1p.io>2024-01-25 16:31:02 +0300
commit75b2517c50a2af0e4ca412a21c48592b52201b78 (patch)
treed8a1acce3cca9abcd651c9a0fa459bef7035f130
parentb9de2f2ce5407588b0da656f1674046910791190 (diff)
tools: add ipcam_capture_restart_all.sh
-rwxr-xr-xtools/ipcam_capture_restart_all.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/ipcam_capture_restart_all.sh b/tools/ipcam_capture_restart_all.sh
new file mode 100755
index 0000000..69bc8ef
--- /dev/null
+++ b/tools/ipcam_capture_restart_all.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+for service in $(systemctl list-units --type service | grep ipcam_capture | awk '{print $1}'); do \
+ systemctl restart $service
+done