- systemctl reload dnsmasq
-
- systemctl disable mailclean.timer &>/dev/null ||:
- systemctl stop mailclean.timer &>/dev/null ||:
- systemctl disable $vpn_ser@mail
- systemctl stop $vpn_ser@mail
- systemctl disable dovecot ||:
- systemctl stop dovecot ||:
+ if systemctl is-active dnsmasq >/dev/null; then
+ m systemctl reload dnsmasq
+ fi
+
+ m systemctl disable mailclean.timer &>/dev/null ||:
+ m systemctl stop mailclean.timer &>/dev/null ||:
+ m systemctl disable $vpn_ser@mail
+ m systemctl stop $vpn_ser@mail
+ m systemctl disable dovecot ||:
+ m systemctl stop dovecot ||: