Permalink
Browse files

Added a configtest option to verify the configuration is ok.

  • Loading branch information...
1 parent 0520bb4 commit e4ff05357de42ed935ddec474b868da2bcea4cbc @till committed Sep 27, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 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
;;

0 comments on commit e4ff053

Please sign in to comment.