mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 21:42:59 +03:00
support for centos 7+, fedora
This commit is contained in:
parent
14d1bc91e4
commit
dc93c8558f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user