bunch of new stuff, a few fixes
[distro-setup] / switch-mail-host
index 3a362c3b5ace6bc2409d8226c75e684b459c5a1c..3f299bab601488f44c7d4a7f64ce2601c04ed76c 100644 (file)
@@ -167,7 +167,7 @@ case $direction in
         e "found different version on old_host=$old_hostname, reexecing"
         m install -T $tmpf /usr/local/bin/switch-mail-host
         m /usr/local/bin/switch-mail-host --pull-reexec "${orig_args[@]}"
-        mexit 0
+        exit 0
       fi
     fi
 
@@ -294,7 +294,7 @@ fi
 
 # Try to prevent emacs from saving stale data it has in memory to disk. eg: files, recentf list, etc.
 # But if emacs ignores the signal, let it live.
-killall -q emacs ||:
+pkill -xf 'emacs( --daemon| -f znc-all)' ||:
 
 if [[ -e /p/profanity-here ]]; then
   systemctl disable --now profanity