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)
|
if (ibsave)
|
||||||
unsetenv ("IN_BACKGROUND");
|
unsetenv ("IN_BACKGROUND");
|
||||||
|
|
||||||
if (! in_control ()) {
|
if (! in_control ())
|
||||||
rc_plugin_run (RC_HOOK_SERVICE_STOP_DONE, applet);
|
|
||||||
ewarnx ("WARNING: %s not under our control, aborting", applet);
|
ewarnx ("WARNING: %s not under our control, aborting", applet);
|
||||||
}
|
|
||||||
|
|
||||||
if (! stopped)
|
if (! stopped)
|
||||||
eerrorx ("ERROR: %s failed to stop", applet);
|
eerrorx ("ERROR: %s failed to stop", applet);
|
||||||
|
Loading…
Reference in New Issue
Block a user