trigger: remove unnecessary runqueue empty callback
[project/procd.git] / service / instance.c
index dccf4b4..8f7835a 100644 (file)
@@ -513,7 +513,7 @@ instance_exit(struct uloop_process *p, int ret)
 
        uloop_timeout_cancel(&in->timeout);
        if (in->halt) {
-               /* no action */
+               instance_removepid(in);
        } else if (in->restart) {
                instance_start(in);
        } else if (in->respawn) {
@@ -541,7 +541,6 @@ instance_stop(struct service_instance *in)
        in->halt = true;
        in->restart = in->respawn = false;
        kill(in->proc.pid, SIGTERM);
-       instance_removepid(in);
 }
 
 static void