diff options
author | Evgeny Sorokin <me@ch1p.io> | 2024-01-25 16:31:02 +0300 |
---|---|---|
committer | Evgeny Sorokin <me@ch1p.io> | 2024-01-25 16:31:02 +0300 |
commit | 75b2517c50a2af0e4ca412a21c48592b52201b78 (patch) | |
tree | d8a1acce3cca9abcd651c9a0fa459bef7035f130 /tools/ipcam_capture_restart_all.sh | |
parent | b9de2f2ce5407588b0da656f1674046910791190 (diff) |
tools: add ipcam_capture_restart_all.sh
Diffstat (limited to 'tools/ipcam_capture_restart_all.sh')
-rwxr-xr-x | tools/ipcam_capture_restart_all.sh | 4 |
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 |