rsync -t --chmod=755 --chown=root:root switch-mail-host btrbk-run mount-latest-subvol \
check-subvol-stale myi3status mailtest-check \
mailbindwatchdog \
- /a/bin/log-quiet/sysd-mail-once hssh \
+ /a/bin/log-quiet/sysd-mail-once \
check-mailq \
unsaved-buffers.el \
mail-backup-clean \
sre() {
service=$1
if [[ $(systemctl is-active $1.service ||:) != inactive ]]; then
- systemctl restart $service
+ # just fire and forget. sometimes a script restart can fail, but then
+ # then auto restart mechanism makes it succeed.
+ systemctl restart $service ||: &
fi
}
while read -r line; do
file="${line:12}"
- echo $file
case $file in
btrfsmaint)
- sre btrfsmaintstop
+ sre btrfsmaintstop &
;;
*)
- sre ${file//-/}
+ sre ${file//-/} &
;;
esac
done < <("${cmd[@]}")