diff options
Diffstat (limited to 'source/ap/cgmanager/config')
-rw-r--r-- | source/ap/cgmanager/config/rc.cgmanager | 2 | ||||
-rw-r--r-- | source/ap/cgmanager/config/rc.cgproxy | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/ap/cgmanager/config/rc.cgmanager b/source/ap/cgmanager/config/rc.cgmanager index 83c19061..56f355d6 100644 --- a/source/ap/cgmanager/config/rc.cgmanager +++ b/source/ap/cgmanager/config/rc.cgmanager @@ -31,7 +31,7 @@ stop_cgmanager() { /bin/sh /etc/rc.d/rc.cgproxy stop >/dev/null 2>&1 || true echo "Stopping cgmanager." /bin/kill $(cat /run/cgmanager.pid 2>/dev/null) 2>/dev/null - /usr/bin/pkill cgmanager 2>/dev/null + /usr/bin/pkill --exact /usr/sbin/cgmanager 2>/dev/null rm -f /run/cgmanager.pid } 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." |