replace killall with kill
This commit is contained in:
parent
ca209f1211
commit
6d03565698
10
debian/init.d
vendored
10
debian/init.d
vendored
|
@ -39,15 +39,15 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping $DESC: "
|
echo -n "Stopping $DESC: "
|
||||||
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
|
#start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
|
||||||
--exec $DAEMON
|
# --exec $DAEMON
|
||||||
killall -9 $NAME
|
ps aux | grep $NAME | awk '{ print $2 }' | xargs kill -9
|
||||||
echo "$NAME."
|
echo "$NAME."
|
||||||
;;
|
;;
|
||||||
restart|force-reload)
|
restart|force-reload)
|
||||||
echo -n "Restarting $DESC: "
|
echo -n "Restarting $DESC: "
|
||||||
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
|
#start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
|
||||||
--exec $DAEMON
|
# --exec $DAEMON
|
||||||
ps aux | grep $NAME | awk '{ print $2 }' | xargs kill -9
|
ps aux | grep $NAME | awk '{ print $2 }' | xargs kill -9
|
||||||
sleep 1
|
sleep 1
|
||||||
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
|
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
|
||||||
|
|
Loading…
Reference in a new issue