homekit/tools/ipcam_capture_restart_all.sh
2024-02-15 14:02:46 +03:00

5 lines
161 B
Bash
Executable File

#!/bin/sh
for service in $(systemctl list-units --type service --plain --no-legend | grep ipcam_capture | awk '{print $1}'); do
systemctl restart $service
done