Re: Bug#357703: udev breaks syslog
- To: sean finney <email@example.com>
- Cc: Rich Walker <firstname.lastname@example.org>, email@example.com
- Subject: Re: Bug#357703: udev breaks syslog
- From: Wouter Verhelst <firstname.lastname@example.org>
- Date: Sat, 1 Apr 2006 22:14:44 +0200
- Message-id: <[🔎] 20060401201444.GA22494@country.grep.be>
- In-reply-to: <20060331112814.GA13106@seanius.net>
- References: <email@example.com> <20060328155055.GE12716@boogie.lpds.sztaki.hu> <20060328161527.GB13104@wonderland.linux.it> <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org> <20060330205103.GB391@country.grep.be> <20060331051726.GA7215@glandium.org> <20060331074759.GA4115@country.grep.be> <20060331112814.GA13106@seanius.net>
On Fri, Mar 31, 2006 at 06:28:14AM -0500, sean finney wrote:
> On Fri, Mar 31, 2006 at 09:47:59AM +0200, Wouter Verhelst wrote:
> > What I'm suggesting is, actually, the reverse of a pidfile, in some way.
> > You'd still have your /var/run/syslogd.pid; but, assuming that file
> > contained the PID "2722" (as it currently does on my system), you'd also
> > have a file called "2722" somewhere (say, under "/var/run/pidlookups")
> > which would contain "/etc/init.d/sysklogd".
> > With such a system, you'd be able to say "restart whatever PID 2722 is".
> > Or even to force-reload it, if that'd be enough.
> no offense, but this sounds more like a solution looking for a problem
> than the other way around.
> i also don't see how it is aesthetically better or cleaner than
> the following 4 lines of shell code:
> sysloginits="inetutils-syslogd metalog socklog-run sysklogd syslog-ng"
> for s in $sysloginits; do
> test -x /etc/init.d/$s && invoke-rc.d $s restart || true
* This doesn't scale as well. Maybe not so important if all you ever
care about is syslog and udev, but there might be more cases where
such a thing could be interesting and/or important.
* It requires a manual update of the package every time someone adds a
new syslogd to the archive. Mine does not.
* It would also catch daemons that have /dev/log open, while "just"
restarting syslogd won't cut that.
Fun will now commence
-- Seven Of Nine, "Ashes to Ashes", stardate 53679.4