我已经运行 isc-dhcp-server 很长时间了。前几天更新后,无法启动。我发现还有几个人报告了类似的问题,但那是从 2009 年开始的。我也无法找到 isc-dhcp-server 进程的日志。但是,如果我以“sudo service isc-dhcp-server start”手动启动 dhcp 服务器,它运行得很好。
以下是输出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
我正在使用薄荷 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
可能出什么问题了?我该如何解决这个问题?
答案1
有一个类似的讨论这里,其中提到添加睡眠值来延迟启动。他们提到将以下内容添加到 /etc/rc.local 有助于在启动时启动它:
sleep 10000
/etc/init.d/zentyal start
但较小的值(例如)sleep 10
可能会起作用。听起来你的服务可能是,/etc/init.d/isc-dhcp-server
也可能不是/etc/init.d/zentyal
,但想法是一样的。
我不确定是否/etc/rc.local
适用于 Linux Mint,但另一个选择是将其添加sleep 10
到 init.d 脚本本身作为第一个命令。