LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   ubuntu9 init.d: start-stop-daemon not parsing args after -- (https://www.linuxquestions.org/questions/programming-9/ubuntu9-init-d-start-stop-daemon-not-parsing-args-after-943347/)

Ztheir 05-04-2012 09:01 PM

ubuntu9 init.d: start-stop-daemon not parsing args after --
 
Hi /Programming/,

I'm building a .deb package for ipv6-enabled isc-dhcp 4 in Ubuntu jaunty, and am having a problem with my /etc/init.d file.

Specifically, I'm trying to pass the "-6" argument within the Start case, but start-stop-daemon appears to be ignoring it:

Code:

start-stop-daemon --start --quiet --pidfile $DHCPDPID \
 --exec /usr/sbin/dhcpd -- -6 -q -pf $DHCPDPID -cf $CONFIG_FILE $INTERFACES

If I execute from the command line, dhcpd runs correctly with -6 mode enabled.

Code:

root@dhcp:/etc/default# /usr/sbin/dhcpd -6 -f -cf /etc/dhcp6/dhcpd.conf
Internet Systems Consortium DHCP Server 4.2.3-P2
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 leases to leases file.
Bound to *:547
Listening on Socket/5/eth0/2604:5500:4:d600::/56
Sending on  Socket/5/eth0/2604:5500:4:d600::/56

Any thoughts on how I can pass this argument correctly so that it is not ignored? I've tried loading the argument into an environment variable, and also editing the /etc/default/dhcpd file, both with no luck.

--Daniel

k3lt01 05-05-2012 03:04 PM

Daniel why are you using an out of date and unsupported version of Ubuntu? The best thing you can do is move to 10.04 or 12.04 and work from there. Once you have done that things should be much easier.

Ztheir 05-05-2012 04:47 PM

Thanks for the reply, k3lt01.

I'm building this package for my SheevaPlug Development Kit, and its Kirkwood 6281 ARM processor is not supported in Ubuntu versions later than 9.05. I understand that the version of Ubuntu I'm running is no longer officially supported or maintained.

I'm still trying to get start-stop-daemon to accept all arguments after the --, but "-6" just doesn't seem to want to pass. I'm thinking about bypassing start-stop-daemon entirely and using something else to drive my init.d file.


All times are GMT -5. The time now is 05:06 AM.