Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Applications
Reload this Page [SOLVED] Disable apache on boot
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Applications I cant get "X" app to work... also discussion about linux programs.

Closed Thread
 
Thread Tools Display Modes
Old 07-09-2008   #1 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 62
[SOLVED] Disable apache on boot

apache starts automatically on booting my Ubuntu 8.04 system. I boot to the GUI by default so I assumed that was runlevel 5. Thus, I renamed

/etc/rc5.d/S91apache2

to

/etc/rc5.d/K91apache2

but the service still started after a reboot. Am i on the wrong runlevel? How can i disable apache's automatic start on boot?
__________________
http://jasonnixon.net
charlie205 is offline  
Old 07-09-2008   #2 (permalink)
Bigtomrodinator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 5,193
Ubuntu is Debian based so only uses two runlevels rather than the 5 seen in most other distros/Unices. You can disable it with
Code:
sudo update-rc.d -f apache2 remove
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline  
Old 07-09-2008   #3 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 62
Thanks for the quick reply! Two questions.

Quote:
Originally Posted by bigtomrodney View Post
Ubuntu is Debian based so only uses two runlevels rather than the 5 seen in most other distros/Unices. You can disable it with
Code:
sudo update-rc.d -f apache2 remove

What file would that command be modifying? I'd like to be able to see what it is doing so I know what is going on.


Also, what is the point of these directories if runlevels 0-6 do not exist?

drwxr-xr-x 2 root root 4096 2008-07-07 10:07 rc0.d
drwxr-xr-x 2 root root 4096 2008-07-07 10:07 rc1.d
drwxr-xr-x 2 root root 4096 2008-07-07 10:07 rc2.d
drwxr-xr-x 2 root root 4096 2008-07-07 10:07 rc3.d
drwxr-xr-x 2 root root 4096 2008-07-07 10:07 rc4.d
drwxr-xr-x 2 root root 4096 2008-07-09 09:49 rc5.d
drwxr-xr-x 2 root root 4096 2008-07-07 10:07 rc6.d
-rwxr-xr-x 1 root root 306 2007-10-15 19:17 rc.local
drwxr-xr-x 2 root root 4096 2008-05-08 09:42 rcS.d
__________________
http://jasonnixon.net
charlie205 is offline  
Old 07-09-2008   #4 (permalink)
Bigtomrodinator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 5,193
Maybe this will help -

How-To: Managing services with update-rc.d | Debian/Ubuntu Tips & Tricks

Basically update-rc.d manages all of the symlinks in the various runlevels to the original init script in question. In Debian systems runlevels 2-5 are identical but I think they're just left there to allow the more traditional system to be restored if required or possibly for compliance.
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline  
Old 07-09-2008   #5 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 62
That worked! It changed the links for each runlevel automagically. Also, thanks for the link, it was very useful.

I appreciate your help!
__________________
http://jasonnixon.net
charlie205 is offline  
Closed Thread



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 04:21 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0