On Tue, May 11, 2004 at 01:03:13PM -0700, [EMAIL PROTECTED] wrote: > The "skeleton" "init.d" file is a great default for starting _one_ > daemon, complete with the "$DAEMON_OPTS" variable. It's not clear, > however, what this newbie package developer should do to start an > arbitrary number of daemons, each with - potentially - different > "$DAEMON_OPTS". > > It's nice to be able to throw "$DAEMON_OPTS" into > "/etc/default/package" and get get a bit more control over the daemon; > but I can't think how to nicely specify an arbitrary number of > "$DAEMON_OPTS" variables in a "/etc/default/package" script fragment.
have a look at hdparm. it has a config file (you can split this into individual ones in a .d directory...) with "sections" and the init script runs a command for each section with the options defined in the section. cu robert -- Robert Lemmen http://www.semistable.com
signature.asc
Description: Digital signature