Re: Bug#357703: udev breaks syslog
On Thu, Mar 30, 2006 at 10:51:03PM +0200, Wouter Verhelst <email@example.com> wrote:
> On Thu, Mar 30, 2006 at 06:22:23PM +0100, Rich Walker wrote:
> > Sam Morris <firstname.lastname@example.org> writes:
> > >
> > > That much is easy, but how do you turn a process ID into a script that
> > > can be invoke-rc.d'd?
> > Make it part of the Debian spec?
> > define a known script name (logging-daemon) that must exist in
> > /etc/init.d/ and can be a symlink to another one.
> > submit a small patch to each logging daemon to add/remove this link when
> > the package is installed/removed?
> Sounds ugly to me.
> Here's another suggestion: start-stop-daemon is in a /very/ good
> position to know which PID belongs to which initscript. Patch it so that
> it writes the PIDs to some "database" somewhere; then patch
> invoke-rc.d to be able to use that "database". Probably best to do that
> through some well-defined interface, rather than having invoke-rc.d
> directly reading out that db, though.
It already does store the pid if called with the --pidfile option. Just
make it mandatory.