Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1474 → Rev 1476

/scripts/alcasar-daemon.sh
13,9 → 13,10
SERVICES="mysqld httpd ntpd iptables dnsmasq dnsmasq-blacklist dnsmasq-whitelist dnsmasq-blackhole radiusd nfsen dansguardian freshclam ulogd-ssh ulogd-traceability ulogd-ext-access chilli fail2ban sshd"
 
function ServiceTest () {
CMD=`pidof $s`
if [ -z "$CMD" ]
CMD=`systemctl is-active $s`
if [ $CMD != "active" ]
then
logger -i "!! $s is inactive. Activation attempt"
systemctl start $s.service
fi
}