警告默认启动运行级别参数与默认启动值不匹配


8

我尝试使用将Fuseki作为服务添加到正确的运行级别update-rc.d。我曾经使用过sudo update-rc.d fuseki defaults,我认为现在还可以,但是我得到了以下警告:

update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match fuseki Default-Start values (3 4 5)
update-rc.d: warning:
default stop runlevel arguments (0 1 6) do not match fuseki Default-Stop values (0 1 2 6)  
Adding system startup for /etc/init.d/fuseki ...
    /etc/rc0.d/K20fuseki -> ../init.d/fuseki
    /etc/rc1.d/K20fuseki -> ../init.d/fuseki
    /etc/rc6.d/K20fuseki -> ../init.d/fuseki
    /etc/rc2.d/S20fuseki -> ../init.d/fuseki
    /etc/rc3.d/S20fuseki -> ../init.d/fuseki
    /etc/rc4.d/S20fuseki -> ../init.d/fuseki
    /etc/rc5.d/S20fuseki -> ../init.d/fuseki

这个警告到底是什么意思?


哪个版本的Ubuntu?
muru

你可以张贴线 # Default-Start:# Default-Stop:从/etc/init.d/fuseki?
LilloX

@muru Ubuntu的14.04.3 LTS(GNU / Linux的3.16.0-30泛型x86_64的)
waanders

@LilloX#默认开始:3 4 5#默认停止:0 2 1 6
徘徊

正如我想象的那样,请参阅我给出的答案。另外,由于运行级别2没有网络,因此服务在运行级别2停止。
LilloX

Answers:


10

从手册update-rc.d中:

If defaults is used then update-rc.d will make links to start the
service in runlevels 2345 and to stop the service in runlevels 016.

相反,似乎在/etc/init.d/fuseki中定义的运行级别为:将运行级别3,4和5启动为停止0,1和6。这不是默认值,程序会提醒您。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.