summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/php-fpm.example.init.in.in')
-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() {