Mailing List Archive

Issue 1198 in cherokee: Startup script error
Status: New
Owner: ----

New issue 1198 by phil...@gmail.com: Startup script error
http://code.google.com/p/cherokee/issues/detail?id=1198

Reproduction:
1. Fresh Debian 6.00 i386 minimal install
2. apt-get update, apt-get upgrade
3. apt-get install cherokee

Expected output:
No errors, cherokee installed successfully.

Actual output:
[...]
Setting up cherokee (1.0.8-5) ...
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 stop-bootlogd if
started
insserv: loop involving service stop-bootlogd at depth 3
insserv: loop involving service vzquota at depth 2
insserv: loop involving service rsyslog at depth 1
insserv: Starting vzquota depends on stop-bootlogd and therefore on system
facility `$all' which can not be true!
insserv: Starting vzquota depends on stop-bootlogd and therefore on system
facility `$all' which can not be true!
insserv: There is a loop between service vzquota and stop-bootlogd if
started
insserv: Starting vzquota depends on stop-bootlogd and therefore on system
facility `$all' which can not be true!
insserv: Starting vzquota depends on stop-bootlogd and therefore on system
facility `$all' which can not be true!
insserv: Starting vzquota depends on stop-bootlogd 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
[...]

ATTACHED:
/etc/init.d/stop-bootlogd
/etc/init.d/vzquota
/etc/init.d/cherokee

The output of 'dpkg -l'

There is no ryslog in /etc/init.d/
vzquota is not currently and has never been installed.

Attachments:
stop-bootlogd.txt 568 bytes
vzquota.txt 357 bytes
cherokee.txt 2.4 KB
dpkg-l.txt 16.8 KB

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1198 in cherokee: Startup script error [ In reply to ]
Comment #1 on issue 1198 by phil...@gmail.com: Startup script error
http://code.google.com/p/cherokee/issues/detail?id=1198

Workaround:
Moving /etc/init.d/vzquota elsewhere allowed apt-get to configure cherokee
successfully. See:
http://serverfault.com/questions/268162/insserv-error-installing-cherokee-on-fresh-debian-squeeze

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1198 in cherokee: Startup script error [ In reply to ]
Updates:
Owner: gunnarwo...@gmail.com
Cc: lnu...@gmail.com
Labels: Debian

Comment #2 on issue 1198 by alobbs: Startup script error
http://code.google.com/p/cherokee/issues/detail?id=1198

(No comment was entered for this change.)

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1198 in cherokee: Startup script error [ In reply to ]
Comment #3 on issue 1198 by gunnarwo...@gmail.com: Startup script error
http://code.google.com/p/cherokee/issues/detail?id=1198

Hmm - This seems not like a Cherokee issue, but something caused by the
combination of a stop-bootlogd issue (package «initscripts») with whatever
provides your «vzquota» startup file. And although your posted messages
point out that stop-bootlogd is to blame, I think it's vzquota's fault, as
it's not Debian-packaged and might not follow policy.

I'll explain a bit, and try to offer a solution.

Initscripts in Debian have to provide startup and shutdown provides and
dependencies in a semi-header fashion. As an example, Cherokee's startup
says:

### BEGIN INIT INFO
# Provides: cherokee
# Required-Start: $remote_fs $network $syslog
# Required-Stop: $remote_fs $network $syslog
# Should-Start: $named
# Should-Stop: $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the Cherokee Web server
# Description: Start the Cherokee Web server
### END INIT INFO

This is because the init ordering is not hand-maintained anymore (if you
chose to use insserv's facilities, or did a clean Debian ≥6.0 install), but
regulated by its dependencies. stop-bootlogd is part of the «initscripts»
package, and I'd really not think it is in error by specifying:

# Required-Start: $local_fs $all

This seems to mean (I am not 100% sure right now) that it is started once
everything else that's pending for the current runlevel is done (and thus,
finishes boot-time logging).

Now, your vzquota file seems to come from a non-Debian source. Debian's
«vzctl» package provides an /etc/init.d/vz file, which contains the vzquota
information, and has the following dependency information:

### BEGIN INIT INFO
# Provides: vz
# Required-start: $network $remote_fs $syslog
# Required-stop: $network $remote_fs $syslog
# Should-Start: sshd vzeventd
# Should-Stop: sshd vzeventd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: OpenVZ startup script
# Description: OpenVZ startup script.
### END INIT INFO

So, you can either try running your vz environments using the official
Debian packages, or add the proper startup information to this initscript.
In order to do this, you can read on: (I'm quoting from Debian's
/usr/share/doc/insserv/README.Debian)

Background info on alternative boot systems in Debian is available
from
<URL:http://alioth.debian.org/docman/view.php/30730/38/debconf2-initscripts-bkg.pdf>.

Information on the LSB initscript comment convention is available from
<URL:http://refspecs.freestandards.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html>,
<URL:http://wiki.debian.org/LSBInitScripts> and
<URL:http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot>.

Information on an alternative approach to parallelism during boot is
available from
<URL:http://www-128.ibm.com/developerworks/linux/library/l-boot.html>.

A tool to detect cycles is available from Adam Jensen using the git
repository <URL:http://linuxguy.org/git/initcycle.git>.


_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1198 in cherokee: Startup script error [ In reply to ]
Comment #4 on issue 1198 by psaod8fz...@gmail.com: Startup script error
http://code.google.com/p/cherokee/issues/detail?id=1198

works for me

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev