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

Re: Argument to start_daemon, use of --



Am 01.08.2010 16:26, schrieb Jordon Bedwell:
> On 8/1/2010 9:03 AM, Malte Forkel wrote:
>> Hi,
>>
>> The example init script init.d.lsb.ex provided by dh-make 0.46 contains
>> this call to start_daemon:
>>
>>     start_daemon -p $PIDFILE $DAEMON -- $DAEMON_OPTS
>>
>> This always passes "--" as first argument to my daemon. Wouldn't
>>
>>     start_daemon -p $PIDFILE -- $DAEMON $DAEMON_OPTS
>>
>> be the proper call?
>>
>> I haven't found a reference to "--" in the LSB init function
>> documentation, but the implementation of start_daemon in
>> /lib/lsb/init-function (from lsb-base) handles "--" explicitly. The use
>> of "--" is documented in bash(1) though. Is this a convention? What
>> status has it?
>>
>> Thanks,
>> Malte
>>
>>
> 
> According to the man page it should be:
> start_daemon -p $PIDFILE $EXECUTABLE $EXECTUABLE_OPTS
> 
> 

So its a bug that I should report?



Reply to: