LS init.d script is lacking the LSB fields in Debian 6

#1
Hi,

Starting with Debian 6.0, there must be a LSB fields in the header of each init.d script.
/etc/init.d/lsws (all versions) does not have one.
LS installation is working, but afterwards it is no longer possible to install any application that uses a init.d script.

FYI, here is what it looks like when trying to install an app (haproxy) after LS was installed :

Code:
Unpacking haproxy (from .../haproxy_1.4.8-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up haproxy (1.4.8-1) ...
Adding group `haproxy' (GID 111) ...
Done.
Adding system user `haproxy' (UID 106) ...
Adding new user `haproxy' (UID 106) with group `haproxy' ...
Not creating home directory `/home/haproxy'.
insserv: warning: script 'K12lsws' missing LSB tags and overrides
insserv: warning: script 'lsws' missing LSB tags and overrides
insserv: There is a loop between service rmnologin and mountnfs if started
insserv:  loop involving service mountnfs at depth 6
insserv:  loop involving service nfs-common at depth 5
insserv: There is a loop between service rmnologin and checkroot if started
insserv:  loop involving service checkroot at depth 3
insserv:  loop involving service keyboard-setup at depth 2
insserv:  loop involving service module-init-tools at depth 4
insserv:  loop involving service mountnfs-bootclean at depth 8
insserv:  loop involving service hwclock at depth 5
insserv:  loop involving service hdparm at depth 3
insserv:  loop involving service hostname at depth 4
insserv:  loop involving service alsa-utils at depth 12
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service atd at depth 12
insserv: There is a loop between service rmnologin and mountall if started
insserv:  loop involving service mountall at depth 8
insserv:  loop involving service checkfs at depth 7
insserv:  loop involving service mtab at depth 6
insserv: There is a loop between service rmnologin and ifupdown-clean if started
insserv:  loop involving service ifupdown-clean at depth 6
insserv: There is a loop between service rmnologin and mountdevsubfs if started
insserv:  loop involving service mountdevsubfs at depth 2
insserv:  loop involving service udev at depth 1
insserv: There is a loop at service lsws if started
insserv: There is a loop at service rmnologin if started
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv:  loop involving service bootlogd at depth 4
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting lsws depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service rmnologin and mountall-bootclean if started
insserv:  loop involving service mountall-bootclean at depth 1
insserv: There is a loop between service rmnologin and bootlogd if started
insserv:  loop involving service networking at depth 10
insserv: Starting lsws 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 haproxy (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 haproxy
E: Sub-process /usr/bin/dpkg returned an error code (1)

Solution : http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot :)
 

khunj

New Member
#3
Thanks.
I modified it for my own use :

Code:
### BEGIN INIT INFO
# Provides:          lsws
# Required-Start:    $local_fs [COLOR="Red"]$remote_fs $network[/COLOR]
# Required-Stop:     $local_fs [COLOR="Red"]$remote_fs $network[/COLOR]
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: lshttpd
# Description:       LiteSpeed Web Server is a World Wide Web server.
### END INIT INFO
$network : seems pretty obvious !
$remote_fs : LS default installation directory is `/usr/local/lsws`. Since `/usr` can be a remote FS, I think it might be a good idea to ensure it is fully mounted first.
 
Top