Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 331566 Details for
Bug 444718
app-admin/busybox-sysklogd, net-misc/busybox-ntpd, sys-apps/busybox-watchdog: integrate init.d scripts into sys-apps/busybox and punt
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Write pid files for klogd, nptd and watchdog like syslogd
0001-Write-pid-files-for-klogd-ntpd-and-watchdog.patch (text/plain), 1.81 KB, created by
Anthony Basile
on 2012-12-05 19:11:55 UTC
(
hide
)
Description:
Write pid files for klogd, nptd and watchdog like syslogd
Filename:
MIME Type:
Creator:
Anthony Basile
Created:
2012-12-05 19:11:55 UTC
Size:
1.81 KB
patch
obsolete
>From 3fb787c6c3621f889e0bca0001799598c37f3a10 Mon Sep 17 00:00:00 2001 >From: "Anthony G. Basile" <blueness@gentoo.org> >Date: Wed, 5 Dec 2012 13:43:55 -0500 >Subject: [PATCH] Write pid files for klogd, ntpd and watchdog > >Several applets can be run as daemons, such as syslogd. These >write pid files but a few, like klogd, ntpd and watchdog, do not. >We add write_pidfile() for these as is done for syslogd. This >gives initialization systems like openrc better control over >those daemons. See the downstream bug > > https://bugs.gentoo.org/show_bug.cgi?id=445434 > >Signed-off-by: Anthony G. Basile <blueness@gentoo.org> >--- > miscutils/watchdog.c | 2 ++ > networking/ntpd.c | 2 ++ > sysklogd/klogd.c | 2 ++ > 3 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c >index ee28dc3..52abe0e 100644 >--- a/miscutils/watchdog.c >+++ b/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, >diff --git a/networking/ntpd.c b/networking/ntpd.c >index 5b92db6..c0e4ccf 100644 >--- a/networking/ntpd.c >+++ b/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; >diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c >index efa0e53..3504e34 100644 >--- a/sysklogd/klogd.c >+++ b/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; >-- >1.7.8.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 444718
: 331566