support for centos 7+, fedora

This commit is contained in:
bolvan 2019-05-05 12:02:54 +03:00
parent 14d1bc91e4
commit dc93c8558f

View File

@ -177,6 +177,7 @@ stop_daemon()
if [ -f "$PIDFILE" ]; then if [ -f "$PIDFILE" ]; then
read PID <"$PIDFILE" read PID <"$PIDFILE"
kill $PID kill $PID
rm -f "$PIDFILE"
else else
echo no pidfile : $PIDFILE echo no pidfile : $PIDFILE
false false