Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This question if for DD-WRT installed on e3000 with optware.

I have replaced the stock dnsmasq to get logging, using this: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=660694 I installed optware on my 16gb usb and installed dnsmasq.

Runs fine when service started, but have two problems:

  • "ps aux | grep dnsmasq" shows two processes

 nobody   29791  0.0  0.8   1284   520 ?        S    12:03   0:01 /opt/sbin/dnsmasq
 root     29792  0.0  0.4   1268   256 ?        S    12:03   0:00 /opt/sbin/dnsmasq
  • On device reboot, the dnsmasq service does not load up. I have to manually load it using "service dnsmasq start" and loads up to processes like the ps grep above.
share|improve this question
    
A note: this mentions DD-WRT, but could easily relate to endpoints in a company network, especially were logging features are concerned. Please consider this before marking off-topic. –  Jeff Ferland Aug 14 '12 at 19:32
    
Thanks a lot Jeff! –  PH. Aug 14 '12 at 19:39
    
That said, even if it can fit here you might still find more people who are well-versed in the software to answer your question over at superuser.com. –  Jeff Ferland Aug 14 '12 at 20:13
    
Yeah, I will move my question to superuser. I just wanted to add answer to my first problem: "There are always 2 processes running for each dhcp network. The subprocess is because dnsmasq setuids to nobocy to run the external script specified in --dhcp-script. This is expected behavior." src: answers.launchpad.net/nova/+question/181398 –  PH. Aug 14 '12 at 20:14
    
Note this question has been cross-posted at SuperUser. –  Ladadadada Oct 8 '12 at 16:19
add comment

1 Answer

up vote 1 down vote accepted

I found the answers to my problems. May be useful to someone else:

  1. "There are always 2 processes running for each dhcp network. The subprocess is because dnsmasq setuids to nobody to run the external script specified in --dhcp-script. This is expected behavior." src: answers.launchpad.net/nova/+question/181398

  2. As one of the processes was nobody; during boot up, user 'nobody' was not initialized. Added these two lines to /opt/etc/init.d/S56dnsmasq:

grep -q nobody /etc/group || echo "nobody:x:99:" >> /etc/group

grep -q nobody /etc/passwd || echo "nobody:x:99:99:nobody:/var:/bin/false" >> /etc/passwd

Works like a charm!

share|improve this answer
    
Welcome to ServerFault. Thanks for leaving the answer for your own problem to help others. You can go ahead and mark this answer as your accepted answer. –  Kenny Rasschaert Aug 16 '12 at 8:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.