Tim Post dijo [Wed, Nov 19, 2008 at 06:07:24PM +0800]:
> I am now updating the init scripts so that all paths are generated by
> autoconf. The cherokee init script will become cherokee.in,  more or
> less because its defaults are configure dependent.
> 
> Should we just put these values in the init script, or
> create /etc/default/cherokee with values obtained by autoconf? I'm not
> sure which is more proper. The init script itself will be distro
> agnostic and chkconfig-able. The other question is bash completion.
> 
> Which way makes it easier for packagers? I am leaning to /etc/defaults,
> but I do not use many RPM based distros.
> 
> Now is the time to chime in if your packaging Cherokee.

Hi,

Well... I think that an initscript is a fairly generic need, and yes,
having it centrally provided (and not supplied by me, and replicated
by every other distro maintainer) is always good. Now, there _are_
some subtleties that each distribution does in a slightly different
way - but I am sure we can at least get to a very good common base.
And it will lead to a better integrated startup script, preventing
mistakes such as what I have done i.e. when /usr/sbin/cherokee was
deprecated for /usr/sbin/cherokee-guardian (and then it was deprecated
back to the previous name, moving the previous cherokee to
cherokee-worker). In the worst case, we will still be able to patch
this file at package build time (i.e. using quilt, my personally
favorite way), keeping track in a clearer of the differences between
the generic and our specific ways.

AFAICT, there is no real reason for setting parameters for Cherokee on
/etc/default. This directory has been IMHO abused - Whatever needs to
be configured, should be configured in the cherokee.conf file.

In any case, I'd like you to refer to the init script we are currently
shipping in Debian and derivatives:

http://git.debian.org/?p=collab-maint/cherokee.git;a=blob;f=debian/cherokee.init;h=d07378dfba1cd3b631b8a45b9054be73ea3787fe;hb=HEAD

I have built it to be based on the LSB specs (modulo the note you will
find at 'status'), so it should suffice for... mostly anything ;-)

Greetings,

-- 
Gunnar Wolf - [EMAIL PROTECTED] - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to