LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 08-09-2007, 08:46 AM   #1
GavB
Member
 
Registered: Nov 2006
Posts: 54

Rep: Reputation: 15
Apache child processes


Hi, just a quick question - It's probably obvious to some people, but is it possible to set apache so that child processes are not killed when apache restarts?

Thanks,
 
Old 08-09-2007, 10:55 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603
No, you want those children to die.
Question is *why* would you want it?
 
Old 08-09-2007, 10:59 AM   #3
GavB
Member
 
Registered: Nov 2006
Posts: 54

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by unSpawn
No, you want those children to die.
Question is *why* would you want it?
Because I have a shoutcat control panel on a couple of servers which starts and stops the shoutcast servers using PHP. When apache stops and starts every day (due to logfile rotations?) it stops the shoutcast streams which is very annoying.

I want them to live!
 
Old 08-12-2007, 04:32 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603Reputation: 2603
In the end logrotate *does* need to restart httpd to make it release the current logfile, no shortcut for that. Maybe you could check out some things to make it rotate faster, because next to all the "other" settings you can wedge into a logrotate conf, logrotate needs to figure out how many logfiles it should rename before it can touch the new file, compress the logfile if configured so, and do any prerotate processing. If you have huge logs you could check if you really need all that data, if you rotate every day but it isn't a lot you could set it to for example once a week and if you do any preprocessing (stats?) maybe you could hand that off to another process. What you do depends on what you need/got so I can't say.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2 Child Processes Seg faulting! DavidHayes Linux - Software 1 04-20-2005 07:54 PM
forking 7 child processes ianomc Programming 5 11-07-2004 12:33 PM
Limiting child processes in Apache? Phaethar Linux - Software 2 11-02-2004 05:24 PM
Rotatelogs - Do I have too many child processes? fireman949 Linux - Software 2 06-08-2004 02:04 PM
parent and child processes skora Programming 5 11-02-2003 10:41 AM


All times are GMT -5. The time now is 06:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration