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