Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a configtest option to verify the configuration is ok.

  • Loading branch information...
commit e4ff05357de42ed935ddec474b868da2bcea4cbc 1 parent 0520bb4
@till authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 php-fpm/templates/default/init.d.php-fpm.erb
View
7 php-fpm/templates/default/init.d.php-fpm.erb
@@ -76,6 +76,11 @@ wait_for_pid () {
}
case "$1" in
+ configtest)
+ echo -n "Testing php-fpm configuration "
+ $php_fpm_BIN -y $php_fpm_CONF -t
+ ;;
+
start)
php_fpm_prepare
@@ -174,7 +179,7 @@ case "$1" in
;;
*)
- echo "Usage: $0 {start|stop|force-quit|restart|reload}"
+ echo "Usage: $0 {start|stop|force-quit|restart|reload|configtest}"
exit 1
;;
Please sign in to comment.
Something went wrong with that request. Please try again.