X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=install-my-scripts;h=27c5c4b30bbd8f9e34adc72949c9df8e5b3e97fa;hb=d6314e9fd15104b8b9db1f1c4b5f612a45d98a8a;hp=58333732b71fd6b7dfb04269026dacc9c601af54;hpb=b18dade73dedfe69aa741f8417947d83c4208f2d;p=distro-setup diff --git a/install-my-scripts b/install-my-scripts index 5833373..27c5c4b 100755 --- a/install-my-scripts +++ b/install-my-scripts @@ -38,12 +38,12 @@ x="$(readlink -f -- "${BASH_SOURCE[0]}")"; cd ${x%/*} # directory of this file 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 \ check-mailq \ unsaved-buffers.el \ mail-backup-clean \ iptables-exim \ ip6tables-exim \ + exim-nn-iptables \ /usr/local/bin rsync -t --chmod=755 --chown=root:root /a/bin/errhandle/err /usr/local/lib @@ -57,20 +57,21 @@ cmd=( rsync -aiSAX --chown=root:root --chmod=g-s 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[@]}")