From: Jurgen Van Ham Date: Tue, 5 Jul 2016 07:57:18 +0000 (+0200) Subject: procd: remove pidfile after unexpected termination without respawn X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=64970552b42b33cc22220e0943671b597d9243f6;p=oweals%2Fprocd.git procd: remove pidfile after unexpected termination without respawn When procd detects a daemon halts and it is not configured to be respawned, the pidfile has to be removed. Signed-off-by: Jurgen Van Ham --- diff --git a/service/instance.c b/service/instance.c index dccf4b4..d7d1f82 100644 --- a/service/instance.c +++ b/service/instance.c @@ -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) {