mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00:00
src: Add critical debug messages for debugging condition handling
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
1a881389b2
commit
af45166814
2 files changed
+3
No files matched your search
@@ -1427,11 +1427,13 @@ restart:
|
|||||||
char name[MAX_COND_LEN];
|
char name[MAX_COND_LEN];
|
||||||
|
|
||||||
mkcond(svc, name, sizeof(name));
|
mkcond(svc, name, sizeof(name));
|
||||||
|
_d("Reassert condition %s", name);
|
||||||
cond_set_path(cond_path(name), COND_ON);
|
cond_set_path(cond_path(name), COND_ON);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case COND_OFF:
|
case COND_OFF:
|
||||||
|
_d("Condition for %s is off, sending SIGCONT + SIGTERM", svc->name);
|
||||||
kill(svc->pid, SIGCONT);
|
kill(svc->pid, SIGCONT);
|
||||||
service_stop(svc);
|
service_stop(svc);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ static void svc_gc(void *arg)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
TAILQ_REMOVE(&gc_list, svc, link);
|
TAILQ_REMOVE(&gc_list, svc, link);
|
||||||
|
_d("Cleaning out %s, clearing any conditions ...", svc->name);
|
||||||
cond_clear(mkcond(svc, cond, sizeof(cond)));
|
cond_clear(mkcond(svc, cond, sizeof(cond)));
|
||||||
free(svc);
|
free(svc);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user