chkconfig on/off doesn't work in 10.04

Asked by Lorin Hochstein

(Running Ubuntu 10.04).

I've got the chkconfig package installed to manage old-style services. While it works for listing services, it doesn't seem to work for enabling/disabling them on startup. For example, here's my attempt to enable the OpenVPN service on startup:

$ sudo chkconfig openvpn on
insserv: warning: script 'K01acpi-support' missing LSB tags and overrides
insserv: warning: script 'tvncserver' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'apport' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'dmesg' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'gdm' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'cron' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'rsyslog' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'console-setup' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'ufw' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'acpid' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth-splash' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'failsafe-x' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'dbus' missing LSB tags and overrides
insserv: warning: script 'acpi-support' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'irqbalance' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udevtrigger' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udev-finish' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udevmonitor' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'atd' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'mysql' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'alsa-mixer-save' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'hwclock' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'avahi-daemon' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'network-interface' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'hwclock-save' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'udev' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth-stop' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'network-interface-security' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'hostname' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'plymouth-log' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'network-manager' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'procps' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'module-init-tools' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
insserv: warning: script 'anacron' 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 sysklogd if started
insserv: loop involving service sysklogd at depth 3
insserv: loop involving service hwclock at depth 2
insserv: loop involving service rsyslog at depth 4
insserv: loop involving service rsyslog at depth 5
insserv: loop involving service umountnfs at depth 8
insserv: exiting now without changing boot order!
/sbin/insserv failed, exit code 1

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu chkconfig Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1

Answer is in output above.
> The script you are attempting to invoke has been converted to an Upstart
job, but lsb-header is not supported for Upstart jobs.
http://upstart.ubuntu.com/

Revision history for this message
Lorin Hochstein (lorinh) said :
#2

Which particular script is it referring to that has been converted to an Upstart job? This message occurs many times above (tvncserver, apport, dmesg, gdm, cron, rsyslog). Is it all of those? Or is it openvpn?

And how do I resolve this? Do I need to file a bug report with whoever manages the package that has the misconfigured job script?

Revision history for this message
Sam_ (and-sam) said :
#3

I guess all of those. As comment #4 implies one needs to learn how to work with upstart scripts and initctl.
https://bugs.launchpad.net/ubuntu/+source/chkconfig/+bug/450517/comments/4
http://www.netsplit.com/2006/08/26/upstart-in-universe/

Revision history for this message
maurizio (antillon-maurizio) said :
#4

i want to turn on this on chanel 6

Revision history for this message
Federico Sacerdoti (fsacerdoti) said :
#5

The question is useful, and unfortunately none of these answers are much help. From reading the "initctl" manual page, I see commands "stop, restart, list, show-config, reload, status". This is similar to the de facto interface of scripts in init.d, however:

  initctl stop is not the same as "never start this service on startup".

Am I misreading the initctl manual or is disabling upstart jobs simply not possible? That seems to be a serious omission, and appears to imply you must remove the files from the system altogether to disable it.

I hope I'm wrong.

Revision history for this message
Dane Elwell (dane-elwell) said :
#6

I've been having the same problem and came across this thread. From what I can ascertain by extensive Googling, the only way to stop a service from starting on system boot is to edit the init file manually to remove the 'start on' condition (or add 'never' as the first option).

There's a reason I prefer CentOS. This is another one.

Revision history for this message
martin suchanek (martin-suc) said :
#7

any solution - I have much more errors like this ???

Can you help with this problem?

Provide an answer of your own, or ask Lorin Hochstein for more information if necessary.

To post a message you must log in.