summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-16 11:58:41 +0000
committerRoy Marples <roy@marples.name>2007-11-16 11:58:41 +0000
commitda153631e70b7335bd657255856fa56ad9c0caad (patch)
tree112f7cb866419436f63066dfb2416f5b4898ecfe /src
parent505f6951c404ddf96c6bbf7b9d768f589502b90f (diff)
downloadopenrc-da153631e70b7335bd657255856fa56ad9c0caad.tar.gz
openrc-da153631e70b7335bd657255856fa56ad9c0caad.tar.bz2
openrc-da153631e70b7335bd657255856fa56ad9c0caad.tar.xz
Run the hook_out if set
Diffstat (limited to 'src')
-rw-r--r--src/runscript.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runscript.c b/src/runscript.c
index c0a0199..3683080 100644
--- a/src/runscript.c
+++ b/src/runscript.c
@@ -600,6 +600,10 @@ static void svc_start (bool deps)
if (state & RC_SERVICE_STARTED) {
ewarn ("WARNING: %s has already been started", applet);
+ if (hook_out) {
+ hook_out = 0;
+ rc_plugin_run (hook_out)
+ }
return;
} else if (state & RC_SERVICE_STARTING)
ewarnx ("WARNING: %s is already starting", applet);
@@ -813,6 +817,10 @@ static void svc_stop (bool deps)
if (state & RC_SERVICE_STOPPED) {
ewarn ("WARNING: %s is already stopped", applet);
+ if (hook_out) {
+ hook_out = 0;
+ rc_plugin_run (hook_out)
+ }
return;
} else if (state & RC_SERVICE_STOPPING)
ewarnx ("WARNING: %s is already stopping", applet);