Bad chkconfig problem; how to reset all services to package defaults

Paul Johnson pauljohn32 at gmail.com
Wed Dec 2 02:21:02 UTC 2009


On an Ubuntu 9.1 system, I had the problem that incoming ssh
connections were slow to recognize users.  I found plenty of people
with similar troubles on the net and several people said that the fix
was to turn off avahi-daemon.  They were correct, if you turn that
off, then ssh connections are fast.

However, I found out that after turning off avahi, well, lots of other
stuff did not work, like printing.  Some printers are networked, so I
suppose that they were found by avahi components.

So I try to re-enable avahi.  Look what disaster befalls me. (see
output [[[[MY DISASTER]]]] below).  I find a *few* people posting
about this same chkconfig problem, but I don't find anybody who has a
fix.

Wading through HOWTOs and man pages,  I feel I'm kinda caught hell
between SYSV and upstart; they try to interoperate.  I've found a gui
configurator in Ubuntuland called "sysv-rc-conf", but I have very
little faith in it. It doesn't every ask "so you want to save these
settings?"  Both chkconfig and sysv-rc-conf report that the dbus and
hal are not ON, and that doesn't make sense to me.  I don't see how
anything at all can work if those aren't running.

I really wish I could just reset all the runlevels to the default
levels. Is there a way? update-rcconf-guide seems to write out a
default configuration, but I can't figure how to make rcconf apply it.

Then there's this:

$ sudo update-rc.d avahi-daemon defaults
update-rc.d: warning: /etc/init.d/avahi-daemon missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
 System start/stop links for /etc/init.d/avahi-daemon already exist.

I would be very grateful for a pointer.

[[[ MY DISASTER]]]]

$ sudo chkconfig avahi-daemon on
[sudo] password for pauljohn:
insserv: warning: script 'S01linux-restricted-modules-common' missing
LSB tags and overrides
insserv: warning: script 'K20acpi-support' missing LSB tags and overrides
insserv: warning: script 'K80hal' missing LSB tags and overrides
insserv: warning: script 'S20udev' missing LSB tags and overrides
insserv: warning: script 'S20ufw' missing LSB tags and overrides
insserv: warning: script 'S20gdm' missing LSB tags and overrides
insserv: warning: script 'S20anacron' missing LSB tags and overrides
insserv: warning: script 'S10powernowd.early' missing LSB tags and overrides
insserv: warning: script 'K80dbus' missing LSB tags and overrides
insserv: warning: script 'S20udevmonitor' missing LSB tags and overrides
insserv: warning: script 'S20cron' missing LSB tags and overrides
insserv: warning: script 'S20avahi-daemon' missing LSB tags and overrides
insserv: warning: script 'S20atd' missing LSB tags and overrides
insserv: warning: script 'avahi-daemon' missing LSB tags and overrides
insserv: warning: script 'cron' missing LSB tags and overrides
insserv: warning: script 'dmesg' missing LSB tags and overrides
insserv: warning: script 'dbus' missing LSB tags and overrides
insserv: warning: script 'hal' missing LSB tags and overrides
insserv: warning: script 'udev' missing LSB tags and overrides
insserv: warning: script 'procps' missing LSB tags and overrides
insserv: warning: script 'anacron' missing LSB tags and overrides
insserv: warning: script 'module-init-tools' missing LSB tags and overrides
insserv: warning: script 'usplash' missing LSB tags and overrides
insserv: warning: script 'failsafe-x' missing LSB tags and overrides
insserv: warning: script 'hwclock' missing LSB tags and overrides
insserv: warning: script 'acpi-support' missing LSB tags and overrides
insserv: warning: script 'atd' missing LSB tags and overrides
insserv: warning: script 'udev-finish' missing LSB tags and overrides
insserv: warning: script 'rsyslog' missing LSB tags and overrides
insserv: warning: script 'powernowd.early' missing LSB tags and overrides
insserv: warning: script 'hwclock-save' missing LSB tags and overrides
insserv: warning: script 'udevmonitor' missing LSB tags and overrides
insserv: warning: script 'gdm' missing LSB tags and overrides
insserv: warning: script 'linux-restricted-modules-common' missing LSB
tags and overrides
insserv: warning: script 'acpid' missing LSB tags and overrides
insserv: warning: script 'udevtrigger' missing LSB tags and overrides
insserv: warning: script 'rsyslog-kmsg' missing LSB tags and overrides
insserv: warning: script 'ufw' missing LSB tags and overrides
insserv: warning: script 'network-manager' missing LSB tags and overrides
insserv: There is a loop between service rsyslog and hwclock if stopped
insserv:  loop involving service hwclock at depth 4
insserv:  loop involving service sysklogd at depth 3
insserv: There is a loop between service rsyslog and pulseaudio if stopped
insserv:  loop involving service pulseaudio at depth 3
insserv:  loop involving service rsyslog at depth 2
insserv:  loop involving service udev at depth 1
insserv: There is a loop between service sysklogd and hwclock if started
insserv:  loop involving service hwclock at depth 3
insserv:  loop involving service sysklogd at depth 2
insserv:  loop involving service networking at depth 1
insserv:  loop involving service sendsigs at depth 6
insserv:  loop involving service umountnfs at depth 8
insserv: There is a loop between service rsyslog and pulseaudio if stopped
insserv: exiting without changing boot order!
/sbin/insserv failed, exit code 1

-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas




More information about the ubuntu-users mailing list