Current time: 06-24-2024, 10:11 PM Hello There, Guest! (LoginRegister)


Post Reply 
Automatischer neustart, wenn Apache down ist.
Author Message
MoritzDorn Offline
Junior Member
*

Posts: 178
Joined: Nov 2007
Reputation: 0
Post: #7
RE: Automatischer neustart, wenn Apache down ist.
Hi,

das habe ich jetzt getestet, und das geht soweit auch, bin mal gespannt, ob es am Sonntag auch funktioniert.

Quote:#!/bin/sh
#
# Apache Process Monitor
#
checkapache=`ps ax | grep -v grep | grep -c apache2`
if [ $checkapache -le 0 ]
then
killall php4-cgi
/etc/init.d/apache2 restart
echo neu gestartet
else
echo läuft
fi
03-15-2008 03:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Automatischer neustart, wenn Apache down ist. - MoritzDorn - 03-15-2008 03:23 AM

Forum Jump:


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