LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-04-2012, 07:32 PM   #1
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

Rep: Reputation: 16
How to stop services from automatically starting at boot time


Hi All,

I have a server which I want my own scripts to configure before they boot. Is there a way that I can stop the services from initially loading at boot time for my script to start after configuration?

The services I'm interested in are:

ntp
snmp
rsyslog
dhcpd

This is on Debian 6.0

Thanks
Anubis.
 
Old 01-04-2012, 07:47 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
Something like this would work:

sudo update-rc.d utility_name disable, e.g.

Code:
sudo update-rc.d ntp disable
Read the man page for more details. There are variations in the arguments that script accepts across the various Debain/Ubuntu flavors. Sadly I don't have a Debian 6 system in front of me.

disable might be a Ubuntu thing. If so, use remove instead.

Last edited by jhwilliams; 01-04-2012 at 07:50 PM.
 
Old 01-04-2012, 07:49 PM   #3
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

Original Poster
Rep: Reputation: 16
Hi There,

Thanks for the quick reply. I'll give that a try!

Thanks
Anubis.
 
Old 01-05-2012, 05:36 AM   #4
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
Debian 6 is most likely using the dependency boot system, so you'd use 'insserv' instead of 'update-rc.d':

insserv -r ntp
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop starting daemons at boot time? cola Slackware 3 12-28-2009 02:49 PM
Stop KDE from starting at boot - really this time? Rotwang Linux - General 3 02-23-2006 12:36 PM
Stop services from starting at boot augu2000 Slackware 6 11-04-2005 07:24 PM
a question about starting of services during boot time tuxfood Red Hat 1 04-22-2005 09:59 PM
starting services at boot-time noisybastard Linux - Newbie 2 11-09-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration