Dhcp
isc-dhcp-server 無法在引導時啟動
我已經執行 isc-dhcp-server 好一陣子了。更新幾天后,它無法啟動。我發現還有一些人報告了類似的問題,但那是從 2009 年開始的。我也找不到 isc-dhcp-server 程序的日誌。但是,如果我手動啟動 dhcp 伺服器作為 `sudo service isc-dhcp-server start’,它執行得很好。
以下是輸出
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
有什麼問題?我該如何解決這個問題?
這裡有一個類似的討論,提到添加一個睡眠值來延遲啟動。他們提到將以下內容添加到 /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 腳本本身作為第一個命令添加。