[Pkg-sysvinit-devel] Two line init.d scripts? Sure, that will work!

Petter Reinholdtsen pere at hungry.com
Thu Feb 6 11:35:55 UTC 2014

[Sergey B Kirpichev]
> Peter, thank you for your work.  Have you tried any complex init
> script to fit this business (apache2 or postfix, for example)?

Nope.  It is ment as an option for the packages with simple needs.
Those with complex needs can use it too, probably, but it might be
easier to just keep the current init.d scripts.

> BTW, I don't think your postfix script is an actual replacement for
> the current init-script.  For example, there are create_xconsole()
> and sendsigs_omit() functions.

Ah, good point.  Added do_start_cleanup and do_stop_prepare hooks to
cater for such needs.

> Also, there is the do_rotate function - a very common example when
> you want to implement a custom action (not just one from fixed set
> start/stop/reload/etc).

Not quite sure if that is within scope of this mechanism.  Will think
more about it.

> Also, you should keep in mind this scenario as well:
> https://lists.debian.org/debian-ctte/2013/12/msg00156.html

Multiple daemons is definitely out of scope.

> Last but not least, we can utilize custom lsb-headers (X-Debian-*
> like) to keep information like pidfile or daemon binary path name.
> I think, there is a parser for this LSB-info somewhere in the lsb-*
> packages.

Why do you believe this is an advantage?

PS: Peter Reinholdtsen is my distant cousin. 
Happy hacking
Petter Reinholdtsen

More information about the Pkg-sysvinit-devel mailing list