How to stop unwanted servrices during boot
Le grand pinguin
rm at mh-freiburg.de
Tue Nov 16 16:30:54 UTC 2004
On Tue, Nov 16, 2004 at 11:02:20AM -0500, Shawn Milo wrote:
> I think that the recommended way to do this is to chmod -x the scripts you do not wish to have executed on startup. So, to disable the samba service, for example, you would type:
>
> chmod -x rc.samba
No, no, no --- pleeease don't provide such ugly hacks! There's a canonical way of doing this
for sysv init scripts: create or remove a link from the script (in /etc/init.d) to the runlevel
directory (/ect/rcN.d where N is the number of the runlevel). If the name of the link starts
with an 'S' then the service is started for that runlevel, if it starts with a 'K' the service
is stopped ("killed").
Now, for all these wanabee-sysadmins: if even that is too complicated Debian (and hence Ubuntu)
has a CL program called 'update-rc.d' which will happily handle the link creation/removal for
you /see other poster's comments). Why on earth would anyone want to do the same task in such a
contieved way?
> I am at work on a Windows machine right now,
ah, _that_ does explain a lot :-)
> so I don't have the specific path information, but I think those scripts are somewhere in /etc/rc.d.
Sorry if this sounds slightly rude, but a bad tip is worse than no tip. I hope i'm not the
only one on this list who fears that in the forseeable future we will be confronted with having
to debug such miss-configured systems (and would _you_ ever think of checking the executable
bits of the initscript when a service won't start?).
Ralf Mattes
>
> Shawn
>
> \
> \> You might want to look at the command
> >
> > update-rc.d
> >
> > The list archives have some discussion on how to do this
> > exactly...
> >
> > Wouter
> >
> > On Tue, Nov 16, 2004 at 03:06:44PM +0800, Enn Pee wrote:
> > > Hi,
> > >
> > > Is there any utility available that can be used to
> > > disable / enable services at different runlevels ? Or
> > > is it the plain method of renaming startup files like
> > > S** to something else? Redhat has one such nice
> > > command line tool that I had used to configure the
> > > services.
> > >
> > > Thanks
> > >
> > > ennpee
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Download the latest ringtones, games, and more!
> > > http://sg.mobile.yahoo.com
> > >
> > > --
> > > ubuntu-users mailing list
> > > ubuntu-users at lists.ubuntu.com
> > > http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
> > --
> > Wouter Eerdekens
> > "Revenge is a dish best served cold"
> > retuow at xs4all.be -- Ancient Klingon Proverb
> > http://www.haggis.be/
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
More information about the ubuntu-users
mailing list