[Pm-utils] RFC - PATCH to functions.in to support Slackware init
Victor Lowther
victor.lowther at gmail.com
Tue Oct 7 16:07:39 PDT 2008
On Tue, 2008-10-07 at 14:25 -0700, Dan Nicholson wrote:
> On Tue, Oct 7, 2008 at 2:01 PM, Stefan Seyfried <seife at suse.de> wrote:
> > Robby Workman wrote:
> >> Attached is an "idea" patch - in other words, I don't intend for this
> >> to be considered for committing upstream; rather, I'm really just
> >> wanting to flesh out whether what I have in mind is horribly bad. :-)
> >>
> >> Here's the patch (it's also attached, in case some mail clients munge
> >> the content. My thoughts are *in* the patch ; responses? :-)
> >
> >> +# Also, we (Slackware) have some init scripts that don't have a "status"
> >> +# directive in them, so maybe using that to check if something is running
> >> +# won't always work.
> >
> > OTOH "service" and the "status" method of init scripts is LSB since quite some
> > time IIUC, so why not just fix the slackware init scripts?
>
> service is not LSB. It's just a wrapper that makes initializing
> services straightforward across distros. The LSB says that all
> services should be installed in /etc/init.d, but it says nothing about
> how the system will actually execute the scripts. Maybe service should
> be in the LSB, but it's not.
>
> http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/initsrcinstrm.html
>
> Robby's point about ambiguous service names is valid, though. Right
> now, we only call stopservice() for ntpd, but it could be called ntp
> or nettime or anything else since there's no convention for that.
Which is why I would like to see some of the hooks moved into te
packages they are relevant to. ntpd is a big example of one such hook,
NetworkManager is another.
> --
> Dan
> _______________________________________________
> Pm-utils mailing list
> Pm-utils at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pm-utils
--
Victor Lowther
Ubuntu Certified Professional
More information about the Pm-utils
mailing list