LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 04: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, 04:35 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,157
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Hi,

You can use:
Code:
update-rc.d -f apache2 remove
Cheers
 
Old 05-20-2010, 04: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, 04:56 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,157
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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, 07: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, 07:43 AM   #6
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,035

Rep: Reputation: 65
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 03:25 AM
disabling 1 boot loader, and enabling other itz2000 Linux - Newbie 9 10-21-2006 07:58 AM
Disabling apmd during boot seran Linux - General 4 12-20-2005 04:39 AM
network disabling on boot siku Linux - Laptop and Netbook 1 11-22-2004 09:38 AM
disabling hotplug ieee1394 at boot 4levels Linux - Hardware 3 04-11-2004 06:31 AM

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

All times are GMT -5. The time now is 09:47 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
Open Source Consulting | Domain Registration