Debian6: script 'S10vzquota' missing LSB tags and overrides

Here one can find interesting information about OpenVZ management and maintenance. OpenVZ control panels information also goes here

Debian6: script 'S10vzquota' missing LSB tags and overrides

Postby lik » Fri Jul 08, 2011 11:44 pm

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594783

OpenVZ generates /etc/init.d/vzquota on every reboot of a container. Since
Debian6/Squeeze makes use of insserv, it's required that all startup scripts include LSB tags.
If you don't this results in the following errors when trying to install software (via apt-get):
insserv: warning: script 'S10vzquota' missing LSB tags and overrides
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
insserv: warning: script 'vzquota' missing LSB tags and overrides
insserv: There is a loop between service vzquota and single if started
insserv: loop involving service single at depth 11
insserv: loop involving service vzquota at depth 10
insserv: loop involving service mountnfs at depth 8
insserv: There is a loop between service vzquota and single if started
insserv: loop involving service sysklogd at depth 14
insserv: Starting vzquota depends on single and therefore on system facility `$all' which can not be true!

To resolve the issue the following fix is to be applied:
Code: Select all
vi /etc/init.d/vzquota

and insert the following code fragment just after "#!/bin/sh":
Code: Select all
### BEGIN INIT INFO
# Provides: vzquota
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start vzquota at the end of boot
# Description: This command is used to configure and see disk quota statistics for Containers.
### END INIT INFO

Similar fix also applies to S00vzreboot init script.
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to OpenVZ related

 


  • Related topics
    Replies
    Views
    Last post
cron