summaryrefslogtreecommitdiff
path: root/tools/ipcam_capture_restart_all.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ipcam_capture_restart_all.sh')
-rwxr-xr-xtools/ipcam_capture_restart_all.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ipcam_capture_restart_all.sh b/tools/ipcam_capture_restart_all.sh
index 3eefbec..e4c1192 100755
--- a/tools/ipcam_capture_restart_all.sh
+++ b/tools/ipcam_capture_restart_all.sh
@@ -1,4 +1,4 @@
#!/bin/sh
-for service in $(systemctl list-units --type service | grep ipcam_capture | awk '{print $1}'); do
+for service in $(systemctl list-units --type service --plain --no-legend | grep ipcam_capture | awk '{print $1}'); do
systemctl restart $service
done