Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have been running the isc-dhcp-server fine for quite a while. A few days back after an update, it fails to start. I found a few more people reporting similar problems but that was from 2009. I was unable to find the logs of the isc-dhcp-server process either. However, if I manually start the dhcp server as `sudo service isc-dhcp-server start', it runs just fine.

The following is the output of dmesg | grep isc-dhcp-server

[   15.267804] init: isc-dhcp-server main process (1201) terminated with status 1
[   15.267839] init: isc-dhcp-server main process ended, respawning
[   15.334785] init: isc-dhcp-server main process (1352) terminated with status 1
[   15.334821] init: isc-dhcp-server main process ended, respawning
[   15.492463] init: isc-dhcp-server main process (1359) terminated with status 1
[   15.492496] init: isc-dhcp-server main process ended, respawning
[   15.550789] init: isc-dhcp-server main process (1366) terminated with status 1
[   15.550826] init: isc-dhcp-server main process ended, respawning
[   15.608956] init: isc-dhcp-server main process (1380) terminated with status 1
[   15.608990] init: isc-dhcp-server main process ended, respawning
[   15.660740] init: isc-dhcp-server main process (1387) terminated with status 1
[   15.660774] init: isc-dhcp-server main process ended, respawning
[   15.719178] init: isc-dhcp-server main process (1402) terminated with status 1
[   15.719213] init: isc-dhcp-server main process ended, respawning
[   15.769204] init: isc-dhcp-server main process (1409) terminated with status 1
[   15.769239] init: isc-dhcp-server main process ended, respawning
[   15.819264] init: isc-dhcp-server main process (1416) terminated with status 1
[   15.819301] init: isc-dhcp-server main process ended, respawning
[   15.869196] init: isc-dhcp-server main process (1430) terminated with status 1
[   15.869232] init: isc-dhcp-server main process ended, respawning
[   15.910841] init: isc-dhcp-server main process (1437) terminated with status 1
[   15.910873] init: isc-dhcp-server respawning too fast, stopped

I am using Mint 13.

Linux hostname 3.2.0-34-generic #53-Ubuntu SMP Thu Nov 15 10:48:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

What could be wrong? How do I go about fixing this problem?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

There is a similar discussion here, that mentions adding a sleep value to delay the start. They mention adding the following to /etc/rc.local helped to start it on boot:

sleep 10000
/etc/init.d/zentyal start

but a smaller value such as sleep 10 may work. Sounds like your service may be /etc/init.d/isc-dhcp-server and not /etc/init.d/zentyal, but same idea.

I'm not sure if /etc/rc.local applies to Linux Mint, but another option is to add the sleep 10 to the init.d script itself as the first command.

share|improve this answer
    
Is that not going to add 10 seconds to my boot time?? –  Lord Loh. Dec 14 '12 at 18:21
1  
Yes. I've used this hack for something years ago for a service that was failing on boot. Looking into it deeply, we found that the networking, even though it started before said service, wasn't actually ready for use. So adding a sleep value to our service, we were able to give the networking time to actually be ready for use. It is indeed a workaround, but a solution nonetheless. –  Banjer Dec 14 '12 at 19:01
    
On this particular machine, the dhcp server is binding to an adapter that has a static IP. Does your concept still apply? Can a network adapter with a manually specified static IP have start up latencies? –  Lord Loh. Dec 14 '12 at 22:23
    
I tried your suggestions and it seems to work just fine. Is there a way to sleep only if the interface is not yet up? and retry this look a few times before abandoning? I am not a shell script wizard :-( –  Lord Loh. Dec 14 '12 at 22:32
1  
Just to document - I modified the /etc/init/isc-dhcp-server.conf script and added a sleep 2 just before the exec of the server. Are these scripts executed asynchronously? My network interfaces seem to come the last on the dmesg list @ ~27 - 30 seconds :-( –  Lord Loh. Dec 14 '12 at 22:44
show 1 more 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.