schr...@gmail.com writes:
> I have a vendor provided package that places a script in /etc/init.d
> (lets call it "myscript")
> Install directions say to enter command:
> update-rc.d myscript defaults
>
> The problem is this fails to create any symbolic links in the
> /etc/rc(n).d run-level directories
>
> update-rc.d -n myscript enable
> shows an error message that "myscript Default-Start contains no run levels"
>
> Supplied file myscript contains lines:
> # Default-Start:
> # Default-Stop:
That’s asking for the service not to be started or stopped in any
runlevel. Obviously this doesn’t make any sense.
> If I edit myscript to contain:
> # Default-Start: 2 3 4 5
> # Default-Stop: 0 1 6
>
> and repeat the: update-rc.d myscript defaults
> it works.
>
> Debian docs state "By default update-rc.d will start services in each
> of the multi-user state runlevels (2, 3, 4, and 5) and stop them in
> the halt runlevel (0), the single-user runlevel (1) and the reboot
> runlevel (6)."
That is out of date, see the update-rc.d man page for a description of
its actual behavior.
--
http://www.greenend.org.uk/rjk/