mirror of
https://github.com/php/php-src.git
synced 2026-04-27 01:48:26 +02:00
Fix bug #64764: Add status option to fpm init.d script
This commit is contained in:
committed by
Stanislav Malyshev
parent
2a93fd1347
commit
ee01af7df1
@@ -91,6 +91,20 @@ case "$1" in
|
||||
fi
|
||||
;;
|
||||
|
||||
status)
|
||||
if [ ! -r $php_fpm_PID ] ; then
|
||||
echo "php-fpm is stopped"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
PID=`cat $php_fpm_PID`
|
||||
if ps -p $PID | grep -q $PID; then
|
||||
echo "php-fpm (pid $PID) is running..."
|
||||
else
|
||||
echo "php-fpm dead but pid file exists"
|
||||
fi
|
||||
;;
|
||||
|
||||
force-quit)
|
||||
echo -n "Terminating php-fpm "
|
||||
|
||||
@@ -131,7 +145,7 @@ case "$1" in
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|force-quit|restart|reload}"
|
||||
echo "Usage: $0 {start|stop|force-quit|restart|reload|status}"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user