Re: Bug#357703: udev breaks syslog
pe, 2006-03-31 kello 13:07 +0100, Stephen Gran kirjoitti:
> This one time, at band camp, Frank Küster said:
> > sean finney <email@example.com> wrote:
> > > 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
> > > done
> > Well, that would try to start each installed service, even if that is
> > not intended by the local admin (no start links in /etc/rc?.d/).
> Doesn't invoke-rc.d already have that logic built in? I sort of thought
> that was the point of it.
Yep, from the manual page:
invoke-rc.d is a generic interface to execute System V style init
script /etc/init.d/name actions, obeying runlevel constraints as well
as any local policies set by the system administrator.
The part about local policies means running policy-rc.d if it exists
(which is very handy, for example for piuparts, which uses it to try to
prevent all services from being started).
I'm a Luddite with neophilia