Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-21-2008, 08:09 AM   #1
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 218

Rep: Reputation: 27
apache not running but Linux still tries to shut id down during shutdown


I have apache2 installed but iam not running it, i have disabled it from starting automatically. However, every time the system shuts down it tried to stop apache web server and waits for around 6-10 seconds before realizing that apache isn't running and continues to terminate other processes. This really slows down the shutdown process. How do i fix it???

Old 06-21-2008, 09:16 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,043
Blog Entries: 14

Rep: Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212
I've not heard of "BOSS" Linux before.

However, for most Linux distros the start up and stop of most programs is done with scripts in /etc/init.d. This is the location of the base scripts but they are run from the run level directories such as /etc/rc1.d, /etc/rc2.d, /etc/rc3.d etc...

In those runlevel directories you should see symbolic links back to the files in /etc/init.d. These symbolic links will be named S##<basename> for start up and K##<basename> for kill (stop) scripts. You can prevent start and stop by removing these symbolic links. You do NOT need to (or even want to) remove the scripts in /etc/init.d itself. By leaving the scripts there you keep the opportunity to use them in the future should your needs change.

For some Linux distros (like RedHat, Fedora) there is a chkconfig command that can set the levels it runs at (or doesn't) instead of having to do it manually.


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
apache 2 won't restart after it was shut down Lorend Linux - Server 2 08-13-2006 02:25 PM
Questions on Running Linux (Apache) Web Server linux.fedoracore Linux - Software 2 01-17-2006 02:09 AM
shutdown now doesn't shut the system down taoweijia Fedora 2 07-07-2004 02:41 PM
shutdown now doesn't shut it down taoweijia Linux - Newbie 3 01-07-2004 10:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:28 PM.

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