@@ -, +, @@ https://bugs.gentoo.org/show_bug.cgi?id=445434 --- miscutils/watchdog.c | 2 ++ networking/ntpd.c | 2 ++ sysklogd/klogd.c | 2 ++ 3 files changed, 6 insertions(+), 0 deletions(-) --- a/miscutils/watchdog.c +++ a/miscutils/watchdog.c @@ -95,6 +95,8 @@ int watchdog_main(int argc, char **argv) stimer_duration, htimer_duration * 1000); #endif + write_pidfile("/var/run/watchdog.pid"); + while (1) { /* * Make sure we clear the counter before sleeping, --- a/networking/ntpd.c +++ a/networking/ntpd.c @@ -2080,6 +2080,8 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv) */ cnt = G.peer_cnt * (INITIAL_SAMPLES + 1); + write_pidfile("/var/run/ntpd.pid"); + while (!bb_got_signal) { llist_t *item; unsigned i, j; --- a/sysklogd/klogd.c +++ a/sysklogd/klogd.c @@ -195,6 +195,8 @@ int klogd_main(int argc UNUSED_PARAM, char **argv) syslog(LOG_NOTICE, "klogd started: %s", bb_banner); + write_pidfile("/var/run/klogd.pid"); + used = 0; while (!bb_got_signal) { int n; --