From 64970552b42b33cc22220e0943671b597d9243f6 Mon Sep 17 00:00:00 2001 From: Jurgen Van Ham Date: Tue, 5 Jul 2016 09:57:18 +0200 Subject: [PATCH] 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 --- service/instance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.25.1