summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@tuffmail.com>2017-07-24 21:40:55 -0400
committerBrian Evans <grknight@tuffmail.com>2017-07-24 21:40:55 -0400
commit73f459d68b6c2a659511f2ab2ea085b3ca997f9d (patch)
tree9fd3bdd161af144b83a0a60e178f324adb9db514
parentAdd a --with-piddir configure flag. (diff)
downloadeselect-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.in10
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() {