summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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