aboutsummaryrefslogtreecommitdiff
path: root/man/runscript.8
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2012-09-24 13:53:53 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2012-09-25 10:22:47 -0500
commit5615fa78d6dc4e23662a2c4130f31b8f954a8aab (patch)
treee52216098b645bafc1879ad7f94200560b9f69e8 /man/runscript.8
parentf007988fbac79460f7733eb9093d2beb537311f8 (diff)
Drop restart_pre/restart_post
By design, restart is hard coded to run stop followed by start along with all of the pre/post functions associated with them. Restart doesn't need its own pre/post functions since it is possible to make any function in an init script behave differently for a restart command by testing against the RC_CMD environment variable.
Diffstat (limited to 'man/runscript.8')
-rw-r--r--man/runscript.85
1 files changed, 0 insertions, 5 deletions
diff --git a/man/runscript.8 b/man/runscript.8
index c4119d9c..471c0f19 100644
--- a/man/runscript.8
+++ b/man/runscript.8
@@ -447,11 +447,6 @@ depend()
need ${_need}
}
-restart_pre() {
- # Verify a config and abort the restart in case it's not valid
- ...
-}
-
# This function does any pre-start setup. If it fails, the service will
# not be started.
# If you need this function to behave differently for a restart command,