fiss-minit

A standalone service supervisor based on minit
Log | Files | Refs | README | LICENSE

commit e263531eb187239adb00cd28db2021a668c300cf
parent 48a2aba378c26ecb9282c8898550884e108cc1df
Author: leitner <leitner>
Date:   Wed, 20 Feb 2002 01:38:37 +0000

record time when processes finish

Diffstat:
MCHANGES | 4++++
MTODO | 6++++++
Mminit.c | 4+++-
3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/CHANGES b/CHANGES @@ -1,3 +1,7 @@ +0.9: + For stopped services, minit did not record the time when it finished, + but when it was started. + 0.8: call waitpid repeatedly until it returns "no children". This reaps zombies faster. diff --git a/TODO b/TODO @@ -1,3 +1,9 @@ The "sync" support should be done asynchronously, not with waitpid. +introduce a new exec command to tell minit to execve() a new version of + it without reboot +if hwclock is used to adjust the system clock by a few hours, the minit + times will be completely off. Maybe we should use the poll timeout to + keep track of what we think how long we are running and use that as a + basis to find out and correct this? diff --git a/minit.c b/minit.c @@ -152,8 +152,10 @@ void handlekilled(pid_t killed) { #endif circsweep(); startservice(i,time(0)-root[i].startedat<1); - } else + } else { + root[i].startedat=time(0); root[i].pid=1; + } } }