Bad instructions in /etc/rc.X/README

Bug #793638 reported by Bryce Nesbitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: sysvinit

Description: Ubuntu 11.04
Release: 11.04
Fully Patched

Following the instructions in /etc/rc2.d/README to disable a service results in an error.

======================================================================
ubuntu:rc2.d> pwd
/etc/rc2.d

ubuntu:rc2.d> cat README
The scripts in this directory are executed each time the system enters
this runlevel.

The scripts are all symbolic links whose targets are located in
/etc/init.d/ .

To disable a service in this runlevel, rename its script in this
directory so that the new name begins with a 'K' and a two-digit
number, and run 'update-rc.d script defaults' to reorder the scripts
according to dependencies. A warning about the current runlevels
being enabled not matching the LSB header in the init.d script will be
printed. To re-enable the service, rename the script back to its
original name beginning with 'S' and run update-rc.d again.

For a more information see /etc/init.d/README.

ubuntu:rc2.d> sudo update-rc.d script defaults
update-rc.d: /etc/init.d/script: file does not exist

ubuntu:rc2.d> update-rc.d
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | SS KK]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
       update-rc.d [-n] <basename> disable|enable [S|2|3|4|5]
  -n: not really
  -f: force

The disable|enable API is not stable and might change in the future.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.