fixes for second bind host
[distro-setup] / mail-setup
index 3efee8bf7f7c7882ffef931ea2d39d9ecd45b3f5..a8692ef23d53ce75e8c7a53361d0615d1a08c67b 100755 (executable)
@@ -875,8 +875,11 @@ fi
 
 # * reload exim
 
-systemctl reload exim4
-systemctl start exim4
+if systemctl is-active exim4 >/dev/null; then
+  systemctl reload exim4
+else
+  systemctl start exim4
+fi
 
 
 # * mail monitoring / testing