[Bug 793638] [NEW] Bad instructions in /etc/rc.X/README

Bryce Nesbitt 793638 at bugs.launchpad.net
Mon Jun 6 16:27:55 UTC 2011


Public bug reported:

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.

** Affects: sysvinit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sysvinit in Ubuntu.
https://bugs.launchpad.net/bugs/793638

Title:
  Bad instructions in /etc/rc.X/README

Status in “sysvinit” package in Ubuntu:
  New

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.




More information about the foundations-bugs mailing list