1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-04 00:17:06 +00:00
mailinabox/ehdd/shutdown.sh
2020-06-22 12:03:13 -04:00

15 lines
334 B
Bash
Executable File

#!/bin/bash
if [ -s /etc/mailinabox.conf ]; then
systemctl stop mailinabox
systemctl stop nginx
systemctl stop php7.2-fpm
systemctl stop postfix
systemctl stop dovecot
systemctl stop cron
#systemctl stop nsd
[ -x /usr/sbin/slapd ] && systemctl stop slapd
systemctl stop fail2ban
fi
ehdd/umount.sh