I'm having trouble getting the dhcp-server to start on my ubuntu ltsp server on boot, I have to start it manually every time.
It appears there is a start up script in the right place for booting
/etc/rc5.d/S40dhcp3-server
?
I'm having trouble getting the dhcp-server to start on my ubuntu ltsp server on boot, I have to start it manually every time.
It appears there is a start up script in the right place for booting
/etc/rc5.d/S40dhcp3-server
?
I have dhcp3-server in rc2.d, rc3.d, rc4.d and rc5.d.
Try removing dhcp3-server using:
then adding it again:Code:sudo update-rc.d -f dhcp3-server remove
Code:sudo update-rc.d dhcp3-server defaults
I have the same problem as the OP. I tried the above suggestion, but no dice. dhcp3-server still won't start on boot.
Here's what I did, and my current rc.d links:
Any suggestsions? I'm going to try the following as a workaround. Add these lines to /etc/rc.localCode:$ sudo update-rc.d -f dhcp3-server remove $ sudo update-rc.d dhcp3-server defaults $ ls -l /etc/rc*.d/*dhcp* lrwxrwxrwx 1 root root 22 2009-10-03 16:48 /etc/rc0.d/K20dhcp3-server -> ../init.d/dhcp3-server lrwxrwxrwx 1 root root 22 2009-10-03 16:48 /etc/rc1.d/K20dhcp3-server -> ../init.d/dhcp3-server lrwxrwxrwx 1 root root 22 2009-10-03 16:48 /etc/rc2.d/S20dhcp3-server -> ../init.d/dhcp3-server lrwxrwxrwx 1 root root 22 2009-10-03 16:48 /etc/rc3.d/S20dhcp3-server -> ../init.d/dhcp3-server lrwxrwxrwx 1 root root 22 2009-10-03 16:48 /etc/rc4.d/S20dhcp3-server -> ../init.d/dhcp3-server lrwxrwxrwx 1 root root 22 2009-10-03 16:48 /etc/rc5.d/S20dhcp3-server -> ../init.d/dhcp3-server lrwxrwxrwx 1 root root 22 2009-10-03 16:48 /etc/rc6.d/K20dhcp3-server -> ../init.d/dhcp3-server
PhilCode:/etc/init.d/dhcp3-server status if [ "$?" -ne 0 ]; then echo "Starting dhcp3-server from rc.local" /etc/init.d/dhcp3-server start fi
Last edited by philv123; October 4th, 2009 at 01:21 AM. Reason: added a line to /etc/rc.local
I figured out my problem. Posting the fix here in case this helps anyone else.
1) Change /etc/default/dhcp3-server. Got the hint to do this from this post
Find the line that says INTERFACES="" and change to INTERFACES="eth0" (or whatever is correct for you).
2) Change permissions of /etc/dhcp3/dhcpd.conf. I had it set to
$ ls -l /etc/dhcp3/dhcpd.conf
-rw-r----- 1 root root 5609 2009-09-14 21:08 /etc/dhcp3/dhcpd.conf
But dhcp3 runs as user/group dhcpd so 'sudo chgrp dhcpd /etc/dhcp3/dhcpd.conf' fixed it.
$ ls -l /etc/dhcp3/dhcpd.conf
-rw-r----- 1 root dhcpd 5609 2009-09-14 21:08 /etc/dhcp3/dhcpd.conf
After making the above 2 changes, dhcp3-server starts at boot for me. Hope this helps someone else.
Phil
This helped me a ton. I work on so many distros and they all have their own place to put things. I just wanted to get this service working again and your tip fixed it first time. Same issue, same fix. I don't know what the crap happened.
For a while, I had the rc.local hack in. But now I can take that out. Thanks!!
I had the same exact problem as you and I used your (philv123) fix and it worked perfectly for me. Thanks a ton!
-Will
This fix didn't work for me. The only thing that worked was to create a startup script that would sleep for 20 to 40 secondes before restarting the dhcp-server service. So it would restart it at about the same time that I would start it manually.
Hi
I am VERY new to this, thought I needed a quick DHCP server and it is not working.
Works fine starting manually, but is not starting automatically, same as everybody else. Have been through philv123 notes and still telling me status - Not Running!
I am using Ubuntu 10.4, not sure what else will help to track the issue.
Thanks
Cracked It
My fault, using the workstation version (said I was new) and had not set the IP details in /etc/network/interfaces, had set in the GUID so was not configured until you log in !!!
Last edited by ITJeff; January 1st, 2012 at 04:18 PM. Reason: Cracked it
Bookmarks