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

Argument to start_daemon, use of --



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


Reply to: