Re: start-stop-daemon: how to pass environment variables to the daemon
On Fri, 2007-07-13 at 11:13 +0800, Yuwen Dai wrote:
> Dear all,
>
> A daemon invoked by start-stop-daemon needs some extra enviroment
> variables. How to pass them to the daemon? Thanks in advance.
>
> Best regards,
> Yuwen
I'm not sure if you meant environment variables or command line
arguments for the daemon. Here is an example of how to provide a
command line arg to the udhcpc daemon. You just put a '--' in front.
# Start a DHCP client daemon on each of the physical interfaces
/bin/start-stop-daemon -b -S --exec /bin/udhcpc \
-- --interface=eth0 \
Reply to: