This one time, at band camp, Drew Parsons said:
> 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.

It occurs to me that the simplest thing to do here is to just do the
simplest thing.  If the fear is that file may not be executable, then
test for that.

XPSERVERLIST="`[ ! -x /etc/init.d/xprint ] || /etc/init.d/xprint 
get_xpserverlist`"

Take care,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to