managing services in ubuntu

Matt Zimmerman mdz at canonical.com
Mon Sep 27 23:47:39 UTC 2004


On Mon, Sep 27, 2004 at 07:19:04PM -0400, volvoguy wrote:

> By "modify" do you mean "delete" the symlinks for the services that aren't
> needed? Also, while I'm asking, I'm not familiar at all with how the
> runlevels work in Debian/Ubuntu. So for example, if I don't need fetchmail
> to run, where and how would I modify the symlinks to make that happen (or
> not happen as the case may be)? :)

For each runlevel X, there is a directory /etc/rcX.d with symlinks for each
script to be executed when that runlevel is entered.  You are free to
customise the runlevels by adding, deleting or renaming these links.

http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit

To prevent fetchmail from starting in the default runlevel (2), you would
use:

sudo rm /etc/rc2.d/S??fetchmail

No, this is not very user-friendly, but adjusting runlevel configuration is
a sysadmin task more than a user task, and we will likely provide a
friendly tool for users at some point in the future.

-- 
 - mdz




More information about the ubuntu-users mailing list