[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: init script config files



Joey Hess wrote:
> 
> Ethan Benson wrote:
> > because not all daemons are alike, each has thier own subtle needs,
> > trying to make a one-size-fits-all shell script `library' will only
> > cause bugs, and make the script less clear and harder to modify.
> 
> I have to agree. If you read say, 50 init scripts, you'll find 50% of
> them are pretty generic. The other half are way out-there and have to do
> a myrid of strange things. start-stop-daemon _is_ our init script
> library, and it's about as close as you can come to one bit of code all
> init scripts can use (and some of them cannot even use it).

Well, I have no problem with putting start-stop-daemon in, if it is
flexible enough (seems like it should be) and gives the same error
reporting ability.  It should be able to handle more stuff that I can in
bash, and make the scripting part simpler.  However, what I propose has
the added benefit of additional consitentcy (for those that can use it)
with minimal effort on the part of the script writer (and, to me, seems
more obvious to use thatn s-s-d).  It also allows for easier
administration of user settings.  50% is lower than I had hoped though,
for init scripts that just manage daemons.

Christopher



Reply to: