From 75b2517c50a2af0e4ca412a21c48592b52201b78 Mon Sep 17 00:00:00 2001 From: Evgeny Sorokin Date: Thu, 25 Jan 2024 16:31:02 +0300 Subject: tools: add ipcam_capture_restart_all.sh --- tools/ipcam_capture_restart_all.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 tools/ipcam_capture_restart_all.sh 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 -- cgit v1.2.3