Don't run the done hook twice
This commit is contained in:
parent
183b7464d3
commit
25091eb4f4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user