LSB-ish init script, RFC

Chuck Anderson cra at WPI.EDU
Fri Feb 15 17:03:11 UTC 2008


On Fri, Feb 15, 2008 at 08:15:45AM -0600, Matthew Farrellee wrote:
> While trying to write an LSB init script for the condor package, I ran 
> across PackagingDrafts/SysVInitScript [1]. It has a very nice template for 
> an init script. But, first, it wasn't quite sufficient for my service, and, 
> second, it didn't exactly follow the Initial Actions [2], which is nearly 
> verbatim the LSB Core 3.2 Init Script Actions [3].
> matt
>
> [1] http://fedoraproject.org/wiki/PackagingDrafts/SysVInitScript
> [2] 
> http://fedoraproject.org/wiki/PackagingDrafts/SysVInitScript#head-2a29ef136c4702a14dcf6127e3b7d6ff558817b9
> [3] 
> http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

See also:

Tracker of Initscripts Review:

https://bugzilla.redhat.com/show_bug.cgi?id=246824

For example:

https://bugzilla.redhat.com/show_bug.cgi?id=246859

Please have a look at the wikipage 
http://fedoraproject.org/wiki/FCNewInit/Initscripts and change your 
initscripts to comply with the LSB standard. Especially check the exit 
status and add a LSB Header. E.g. starting a service should return 
with 0, if the service is already running and stopping a stopped 
service should also return with 0.

Also check, if your service has to be _on_ per default, and turn it 
off in the old chkconfig line, if not.

Thank you.




More information about the fedora-devel-list mailing list