diff options
Diffstat (limited to 'source/ap/cgmanager/config/rc.cgproxy')
-rw-r--r-- | source/ap/cgmanager/config/rc.cgproxy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/ap/cgmanager/config/rc.cgproxy b/source/ap/cgmanager/config/rc.cgproxy index bd96902c..59a61b78 100644 --- a/source/ap/cgmanager/config/rc.cgproxy +++ b/source/ap/cgmanager/config/rc.cgproxy @@ -23,10 +23,10 @@ stop_cgproxy() { if ! /bin/kill $(cat /run/cgproxy.pid 2>/dev/null) 2>/dev/null ; then sleep 1 echo "Sending cgproxy the TERM signal." - if ! /usr/bin/pkill -TERM cgproxy ; then + if ! /usr/bin/pkill --exact -TERM /usr/sbin/cgproxy ; then sleep 5 echo "Sending cgproxy the KILL signal." - /usr/bin/pkill -KILL cgproxy + /usr/bin/pkill --exact -KILL /usr/sbin/cgproxy sleep 5 if ps -C cgproxy | grep -q cgproxy 2>/dev/null ; then echo "Error: couldn't stop cgproxy." |