summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-10 06:24:08 +0000
committerRoy Marples <roy@marples.name>2007-10-10 06:24:08 +0000
commit25091eb4f49c68f8733387449b95bbd2a0ea8439 (patch)
treec61ad7559504e19029182d2a5d233950510dbd64 /src
parent183b7464d32266352c1e70df3c9b10bb6fa0bfcf (diff)
downloadopenrc-25091eb4f49c68f8733387449b95bbd2a0ea8439.tar.gz
openrc-25091eb4f49c68f8733387449b95bbd2a0ea8439.tar.bz2
openrc-25091eb4f49c68f8733387449b95bbd2a0ea8439.tar.xz
Don't run the done hook twice
Diffstat (limited to 'src')
-rw-r--r--src/runscript.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/runscript.c b/src/runscript.c
index d2c9287..74a84c0 100644
--- a/src/runscript.c
+++ b/src/runscript.c
@@ -937,10 +937,8 @@ static void svc_stop (bool deps)
if (ibsave)
unsetenv ("IN_BACKGROUND");
- if (! in_control ()) {
- rc_plugin_run (RC_HOOK_SERVICE_STOP_DONE, applet);
+ if (! in_control ())
ewarnx ("WARNING: %s not under our control, aborting", applet);
- }
if (! stopped)
eerrorx ("ERROR: %s failed to stop", applet);