1 2 3 4 5 6 7
#!/bin/bash for f in $(ls /etc/ipcam_capture.conf.d/ | xargs); do camera="${f/.conf/}" echo "restarting $camera" systemctl restart ipcam_capture@${camera} done