update-rc.d.8 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .\" Hey, Emacs! This is an -*- nroff -*- source file.
  2. .TH UPDATE\-RC.D 8 "6th June 1996" "Debian Project" "Debian/GNU Linux"
  3. .SH NAME
  4. update\-rc.d \- install and remove System-V style init script links
  5. .SH SYNOPSIS
  6. .B update\-rc.d
  7. .I <basename>
  8. \&remove
  9. .LP
  10. .B update-rc.d
  11. .I <basename>
  12. \&defaults
  13. .RI [ " <codenumber> " | " <startcodenumber>" " " "<stopcodenumber> " ]
  14. .LP
  15. .B update-rc.d
  16. .I <basename>
  17. \&start | stop
  18. .I <codenumber> <runlevel>
  19. .RI [ " <runlevel> " [ " <runlevel> " [ ... ]]]
  20. \&.
  21. .SH DESCRIPTION
  22. This manual page explains the Debian
  23. .B "update-rc.d"
  24. System-V init script link utility. It should be used when installing and
  25. removing init scripts on a Debian system.
  26. .SH REMOVING SCRIPTS
  27. When invoked with the
  28. .I remove
  29. option, update-rc.d removes the links to the script for the package
  30. .IR basename .
  31. The script must have been deleted already -
  32. .B update-rc.d
  33. checks for this.
  34. It then removes all the (now-dangling) links to the script in
  35. .RB "" /etc/rc[0123456].d/ .
  36. .SH INSTALLING SCRIPTS
  37. When run with either the
  38. .RI "" defaults ", " start ", or " stop
  39. options, update-rc.d makes links pointing to the script in
  40. .RB "" /etc/init.d/ .
  41. The script must be installed before update-rc.d is run.
  42. The
  43. .I <codenumber>
  44. arguments specify the order in which the script will be executed.
  45. When
  46. .B init
  47. changes runlevels it executes the scripts in the order of their
  48. .I codenumber
  49. from lowest to highest.
  50. The
  51. .I <runlevel>
  52. arguments specify the runlevels that the script will be run in.
  53. As many as seven runlevels (0-6) may be specified.
  54. The last runlevel must be followed by a period.
  55. When invoked with the
  56. .I defaults
  57. option the start runlevels are
  58. .B 2 3 4 5
  59. and the stop runlevels are
  60. .RB "" "0 1 2 3 4 5 6" .
  61. If neither
  62. .I <codenumber>
  63. or
  64. .I <startcodenumber>
  65. and
  66. .I <stopcodenumber>
  67. are specified, then the stop and start codenumbers default to 20.
  68. .SH FILES
  69. .B /etc/init.d/
  70. .bl
  71. .B /etc/rc[0123456].d/
  72. .SH "SEE ALSO"
  73. .BR init (1),
  74. .BR inittab (1),