LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-20-2010, 05:12 PM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
Disabling apache2 from boot


In Debian, how can I disable Apache2 from starting automatically at boot time?
 
Old 05-20-2010, 05:35 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,294

Rep: Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698
Hi,

You can use:
Code:
update-rc.d -f apache2 remove
Cheers
 
Old 05-20-2010, 05:48 PM   #3
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
hmmmm
Thanks!

I just want to disable, so... does this works?
Code:
update-rc.d apache2 disable
 
Old 05-20-2010, 05:56 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,294

Rep: Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698
Nope. The remove option just removes the symlinks for all runlevels to the apache2 init script. This way the service will not start again on boot.
You can take a look at the manpage for more details.

Regards
 
Old 05-20-2010, 08:10 PM   #5
Babertje
Member
 
Registered: Jun 2009
Location: Haarlem, The Netherlands
Distribution: Archlinux
Posts: 125

Rep: Reputation: 20
Quote:
Originally Posted by bathory View Post
Hi,

You can use:
Code:
update-rc.d -f apache2 remove
Cheers
or you can chmod it like "sudo chmod 600 /etc/init.d/someunwantedscript" (without quotes, someunwantedscript = your stuff) that keeps the sym.links but not execute the script at startup. this is a easy way of temp. exclude it at startup. other debian way is to replace the letter S with a K in each run level (like S30gdm replaced with k30gdm in /etc/rc3.d disables the gnome display manager at startup
 
Old 05-21-2010, 08:43 AM   #6
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 64
This may be better option.
Code:
update-rc.d -f apache2 remove
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
disabling RAID for dual boot tomzo Linux - Hardware 2 01-18-2007 04:25 AM
disabling 1 boot loader, and enabling other itz2000 Linux - Newbie 9 10-21-2006 08:58 AM
Disabling apmd during boot seran Linux - General 4 12-20-2005 05:39 AM
network disabling on boot siku Linux - Laptop and Netbook 1 11-22-2004 10:38 AM
disabling hotplug ieee1394 at boot 4levels Linux - Hardware 3 04-11-2004 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:40 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration