Re: Bug#357703: udev breaks syslog
On Thu, Mar 30, 2006 at 06:22:23PM +0100, Rich Walker wrote:
> Sam Morris <email@example.com> 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.
 "database", as in, "some way to store PIDs and which initscript they
belong to", not necessarily as in "libdb", and absolutely not as in
"SQL-engine with data files".
Fun will now commence
-- Seven Of Nine, "Ashes to Ashes", stardate 53679.4