Directspace Debian 6 VPS warning: script 'vzquota' missing LSB tags and overrides 错误解决方法

Directspace 的Debian 6因为缺少LBS,安装软件时会提示一下错误:
insserv: warning: script ‘S10vzquota’ missing LSB tags and overrides
insserv: warning: script ‘vzquota’ missing LSB tags and overrides
insserv: There is a loop between service vzquota and rmnologin if started
insserv:??loop involving service rmnologin at depth 3
insserv:??loop involving service vzquota at depth 2
insserv:??loop involving service rsyslog at depth 1
insserv: Starting vzquota depends on rmnologin and therefore on system facility $all' which can not be true!
insserv: There is a loop between service vzquota and rmnologin if started
insserv: Starting vzquota depends on rmnologin and therefore on system facility
$all’ which can not be true!
insserv: Starting vzquota depends on rmnologin and therefore on system facility $all' which can not be true!
insserv: Starting vzquota depends on rmnologin and therefore on system facility
$all’ which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing screen (–configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports

解决方法:
编辑/etc/init.d/vzquota
在start(){? ?前面添加如下内容:

### BEGIN INIT INFO
# Provides: OSSEC HIDS
# Required-Start: $network $remote_fs $syslog $time
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: OSSEC HIDS
### END INIT INFO

感谢军哥
原帖地址:http://bbs.vpser.net/redirect.php?tid=2417&goto=lastpost

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据