summaryrefslogtreecommitdiff
path: root/usr/libexec/commission/off.sh
blob: afd3c1f6157bc8a8671d449dfd2274f080d4b7ff (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
INIT=$(ps --no-headers -o comm -p1)
sleep 30
if [[ ${INIT} == systemd ]] ; then
    systemctl stop commission stop
    systemctl stop commission-php-fpm
else
    /etc/init.d/commission stop 2>&1 | logger -p local0.crit
    /etc/init.d/commission-php-fpm stop 2>&1 | logger -p local0.crit
fi