insserv: warning: script 'K01aria2c' missing LSB tags and overrides

樹莓派安裝 aria2 下載器遇到警告。


insserv: warning: script 'K01aria2c' missing LSB tags and overrides
insserv: warning: script 'aria2c' missing LSB tags and overrides

這是在命令行輸入,設置 aria2 開機啓動:


sudo update-rc.d aria2c defaults

遇到這樣的問題,在 這裏找到解決辦法

If look at the /etc/init.d/skeleton script, in the beginning of it there are two marks : ### BEGIN INIT INFO and ### END INIT INFO.

All the data inside those marks is the configuration for runtime dependences and you can look them up in the Debian Wiki.

Your script is missing these tags and configuration so insserv just uses some defaults.

This is just a warning and is not something to worry about, but you can fix it very easily and then you can be Linux Standards Base-compliant (That's what LSB means).

The easiest way to fix the warning, is to copy the LSB tags from the skeleton script to the beginning of your mathkernel script and just change skeleton to mathkernel.


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章