mostly fixes and improvements
[distro-setup] / install-my-scripts
index 58333732b71fd6b7dfb04269026dacc9c601af54..c932cfef6a256467a06d2d470a9eb0a8624b6ff1 100755 (executable)
@@ -38,12 +38,13 @@ 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 \
+      check-crypttab \
       /usr/local/bin
 rsync -t --chmod=755 --chown=root:root /a/bin/errhandle/err /usr/local/lib
 
@@ -57,20 +58,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[@]}")