properly kill python3-based core-daemon when using 'core-cleanup -d'

This commit is contained in:
Jeff Ahrenholz 2020-03-04 13:23:09 -08:00
parent fd2a5ec290
commit 91dae87810

View file

@ -19,7 +19,7 @@ PATH="/sbin:/bin:/usr/sbin:/usr/bin"
export PATH
if [ "z$1" = "z-d" ]; then
pypids=`pidof python python2`
pypids=`pidof python3 python`
for p in $pypids; do
grep -q core-daemon /proc/$p/cmdline
if [ $? = 0 ]; then