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

Bug#661109: lsb: Please include helper function for init scripts on upstart-based systems



Le 02.05.2012 08:55, Steve Langasek a écrit :
> BTW, I'm sorry to say I've just noticed the patch I sent has a bug; the
> output of 'which initctl' should be suppressed, otherwise each init script
> using this function will output "/sbin/initctl" which we don't want.
> 
> So the line should be:
> 
>    if which initctl >/dev/null && initctl version | grep -q upstart

Good catch. That said, wouldn't the following be more robust ?

if [ -x /sbin/initctl ] && /sbin/initctl version | /bin/grep -q upstart

In init-functions, no PATH is defined (all executables are currently
called with full paths). And only upstart ships /sbin/initctl, right?

Cheers,

OdyX





Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: