Ubuntu Services Management
A. Khattri
ajai
Fri Feb 25 12:45:56 PST 2005
On Fri, 25 Feb 2005, Matthew Carpenter wrote:
> Has anyone found the "Right Way" to manage Ubuntu services startup?
> Obviously we can remove the link from rc2.d but I noticed the service
> configuration for Apache2 (found in /etc/default) shows a NO_START
> line. This reminded me of the COL days where all services had a linked
> startup script in the runlevel and the config file told whether or not
> to really start.
>
> Alternately I've played around with update-rc.d but can't seem to remove
> a service from the runlevel. When I try I get an error about the script
> still existing in /etc/init.d. A Duh!
Ive been trying to figure out the same thing. At least chkconfig (RH) and
rc-update (Gentoo) have an easy-to-use syntax compared to update-rc! Did
you try the man page example?
update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 .
Im assuming the "stop" part of this command, stops the service numbered 20
from running in runlevels 0, 1 and 6 but I haven't played with this
myself.
Also, there is no iptables startup script - I can start by hand but what's
the Right Way to do it automatically? I did some Googling and found some
posts discussing how Debian has no iptables init script...
--
A.
More information about the Linux-users
mailing list