Current time: 09-25-2024, 10:23 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Erledigt] Apache startet selbständig neu
Author Message
nuke3d Offline
Junior Member
*

Posts: 107
Joined: Sep 2007
Reputation: 1
Post: #7
RE: Apache startet selbständig neu
Hatte das Problem mit den unbeendeten Children auch. Dieses Script in nem Cron hat geholfen:
Code:
#!/bin/bash

# Created  2007-11-11 JU
# Modified 2008-05-06 JU

# Workaround for https://bugs.launchpad.net/ubuntu/+source/php5/+bug/162082
#
# What it does:
# Kill all '/usr/lib/cgi-bin/php' processes that have init
# parent is init.
# That is, kill all orphaned php CGI processes.
# Log some useful info when kill something, 'x' otherwise.


LOGF=/root/phpkiller.log
CGI_EXE=/usr/bin/php5-cgi

if pgrep -f -x $CGI_EXE -P 1 > /dev/null
then
echo >> $LOGF
date >> $LOGF
pstree -uAp >> $LOGF
pgrep -f -x $CGI_EXE -P 1 >> $LOGF
echo >> $LOGF
pkill -f -x $CGI_EXE -P 1
else
echo -n x >> $LOGF
fi

Seit ich auf fcgid umgestiegen bin brauch ich das allerdings nicht mehr...
06-28-2009 06:39 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Apache startet selbständig neu - BeNe - 06-26-2009, 10:12 PM
RE: Apache startet selbständig neu - ThK - 06-26-2009, 10:24 PM
RE: Apache startet selbständig neu - ThK - 06-28-2009, 04:58 PM
RE: Apache startet selbständig neu - nuke3d - 06-28-2009 06:39 PM
RE: Apache startet selbständig neu - ThK - 06-29-2009, 06:33 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)