man update-rc.d
Quote:
INSTALLING INIT SCRIPT LINKS
When run with either the defaults, start, or stop options, update-rc.d makes links /etc/rcrun-
level.d/[SK]NNname pointing to the script /etc/init.d/name,
If any files /etc/rcrunlevel.d/[SK]??name already exist then update-rc.d does nothing. This is so
that the system administrator can rearrange the links, provided that they leave at least one link
remaining, without having their configuration overwritten.
If defaults is used then update-rc.d will make links to start the service in runlevels 2345 and
stop the service in runlevels 016. By default all the links will have sequence code 20, but this
can be overridden by supplying one NN or two SS and KK arguments; one argument overrides the
sequence code for both start and stop links whereas of two arguments the first overrides the code
for start links and the second that for stop links.
|
EXAMPLES
Insert links using the defaults:
update-rc.d foobar defaults
Equivalent command using explicit argument sets:
update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 .
or in your case...
update-rc.d samba start 20 2 3 4 5 . stop 20 0 1 6 .