diff --git a/fm-rest-api/fm/scripts/fm-api b/fm-rest-api/fm/scripts/fm-api index 0988fc6e..bf685411 100644 --- a/fm-rest-api/fm/scripts/fm-api +++ b/fm-rest-api/fm/scripts/fm-api @@ -42,7 +42,7 @@ status() # Status function has a standard set of return codes to indicate daemon status # http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html - local my_processes=`pgrep -l -f "^(python|/usr/bin/python|/usr/bin/python2) ${DAEMON}([^\w-]|$)"` + local my_processes=`pgrep -l -f "^(python|/usr/bin/python|/usr/bin/python2|/usr/bin/python3) ${DAEMON}([^\w-]|$)"` if [ -z "${my_processes}" ]; then echo "$NAME is not running" @@ -82,7 +82,7 @@ start () confirm_stop() { - local my_processes=`pgrep -l -f "^(python|/usr/bin/python|/usr/bin/python2) ${DAEMON}([^\w-]|$)"` + local my_processes=`pgrep -l -f "^(python|/usr/bin/python|/usr/bin/python2|/usr/bin/python3) ${DAEMON}([^\w-]|$)"` if [ -n "${my_processes}" ] then