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