From 25091eb4f49c68f8733387449b95bbd2a0ea8439 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 10 Oct 2007 06:24:08 +0000 Subject: Don't run the done hook twice --- src/runscript.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/runscript.c') diff --git a/src/runscript.c b/src/runscript.c index d2c92879..74a84c00 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); -- cgit v1.2.3