properly kill python3-based core-daemon when using 'core-cleanup -d'
This commit is contained in:
parent
fd2a5ec290
commit
91dae87810
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ PATH="/sbin:/bin:/usr/sbin:/usr/bin"
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
if [ "z$1" = "z-d" ]; then
|
if [ "z$1" = "z-d" ]; then
|
||||||
pypids=`pidof python python2`
|
pypids=`pidof python3 python`
|
||||||
for p in $pypids; do
|
for p in $pypids; do
|
||||||
grep -q core-daemon /proc/$p/cmdline
|
grep -q core-daemon /proc/$p/cmdline
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue