LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-04-2012, 09:01 PM   #1
Ztheir
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
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
 
Old 05-05-2012, 03:04 PM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
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.
 
Old 05-05-2012, 04:47 PM   #3
Ztheir
LQ Newbie
 
Registered: May 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting with start-stop-daemon agentgates Linux - Server 6 02-01-2012 03:59 PM
[SOLVED] start-stop-daemon in Slackware? qlands Slackware 6 06-24-2011 04:03 PM
new daemon - start and stop questions zoran119 Slackware 3 11-18-2008 05:39 AM
start-stop-daemon for linux eliufoo Linux - Software 1 02-07-2008 02:12 AM
Logging with Start stop daemon bigsness Linux - General 0 01-19-2005 03:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration