On Tue, Nov 08, 2005 at 11:16:20AM +1100, Drew Parsons wrote: > On Mon, 2005-11-07 at 18:24 -0500, Justin Pryzby wrote: > > Why not source the script? Error in the script should IMHO be > > detected and cause the initscript to fail. > > > > If I understand Eduard's case properly, I think I don't want to do that > because I specifically do *not* want to run the script in the case where > the local admin has deliberately made it non-executable. The issue at > hand is disabling daemons from running, while having them installed. My understanding was that he objected to the script failing when a conffile doesn't exist (valid scenario), or is not executable (valid scenario).
If somebody actually requests that a nonexecutable conffile not be run, then if [ -x $conffile ]; then $confile; fi; for more fine-grained error handling. But unless someone actually asks for a nonexecutable conffile to not be used (and I don't see that in Eduard's request), I would just source it or run it with sh. -- Clear skies, Justin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

