diff options
author | 2017-07-24 21:40:55 -0400 | |
---|---|---|
committer | 2017-07-24 21:40:55 -0400 | |
commit | 73f459d68b6c2a659511f2ab2ea085b3ca997f9d (patch) | |
tree | 9fd3bdd161af144b83a0a60e178f324adb9db514 | |
parent | Add a --with-piddir configure flag. (diff) | |
download | eselect-php-73f459d68b6c2a659511f2ab2ea085b3ca997f9d.tar.gz eselect-php-73f459d68b6c2a659511f2ab2ea085b3ca997f9d.tar.bz2 eselect-php-73f459d68b6c2a659511f2ab2ea085b3ca997f9d.zip |
Don't allow restart with a bad config
-rw-r--r-- | doc/php-fpm.example.init.in.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/php-fpm.example.init.in.in b/doc/php-fpm.example.init.in.in index 04fb26f..859ee5a 100644 --- a/doc/php-fpm.example.init.in.in +++ b/doc/php-fpm.example.init.in.in @@ -49,7 +49,15 @@ configtest() { } start_pre() { - configtest || return $? + if [ "${RC_CMD}" != "restart" ] ; then + configtest || return $? + fi +} + +stop_pre() { + if [ "${RC_CMD}" = "restart" ] ; then + configtest || return $? + fi } reload() { |