[lsb-discuss] Init Script Example

Olaf van der Spek olafvdspek at gmail.com
Thu Jan 27 22:38:56 PST 2011

On Thu, Jan 27, 2011 at 6:59 PM, Stew Benedict
<stewb at linuxfoundation.org> wrote:
>> 1. A skeleton LSB compliant init script that one can base it's own scripts on.
>> 2. This (not yet available) script is probably too long, so a better
>> API for such scripts would be helpful.
>> Code duplication should be avoided, so the skeleton should be simple.
>> For a simple daemon, the input could be:
>> NAME=lighttpd
>> DAEMON=/usr/sbin/lighttpd
>> DAEMON_OPTS="-f /etc/lighttpd/lighttpd.conf"
>> Ideally the boilerplate required would be just a few lines, instead of
>> the current 100+ lines.
> While by no means a definitive example, here is one we use for the
> appbat "lsb-apache":
> http://bzr.linuxfoundation.org/loggerhead/lsb/devel/appbat/annotate/head:/scripts/lsb-apache

Shouldn't force-reload, reload and status actions be included as well?


More information about the lsb-discuss mailing list