|
lug-bg: Re: <No Subject>
- Subject: lug-bg: Re: <No Subject>
- From: mr700@xxxxxxxxxxx (Doncho N. Gunchev)
- Date: Sat, 22 Feb 2003 01:23:19 +0200
printzipno apache-to si ima instrumenti za restart... "apachectl restart" ili
"apachectl -k restart" za novite versii, za kakwo ti e takyw slojen skript na
100 reda? Kak tochno wyznikwa toz problem? Kakwa ti e wryzkata na MySQL-a s
apacheto?
eto ti malko "tips"
[root@obsidian root]# cat /var/run/httpd.pid
5632
# towa a PID-a na apache-to :) 1-to - roditelq
[root@obsidian root]# pidof httpd
5642 5641 5640 5639 5638 5637 5636 5635 5632
# towa sa ti PID-owete na wsichkite apache-ta
# inak:
--- cut ---
if pidof httpd | grep `cat /var/run/httpd.pid 2>/dev/null` > /dev/null 2>&1;
then
echo "Apache running"
else
if [ -x /var/run/httpd.pid ]; then
echo "Apache stopped"
else
echo "Apache died unexpectedly"
echo "stale pid file /var/run/httpd.pid - please clean"
fi
fi
--- cut ---
i ;) zamestwash koto ti trqa :)
a za CPU-to ... "top" i gledai
On Friday 21 February 2003 13:02, vladimirfrish@xxxxxxxxxx wrote:
> hi all,
>
> imam edin problem:
>
> poneje mysql mi se preotvarva i sled tova mi se blokira web-server-a
> mi se iska ( s shell script ) da proverja pid-to na httpd ( ili apache )
> i da go restartiram...
> probvah razli4ni ne6ta kato naprimer:
> -->>
> #!/bin/sh
> bash
> ps -auxwww | grep /httpd | grep -v grep | awk '{ print $2 }' | xargs echo
> kill -9 -1 | sh -v restart_apache
> cd /etc
> sh rc
> cd ..
> cd /tmp
> ls -aslg mysql.sock
> chmod mysql.sock 777
> restart_apache
> <<--
> no ne6to ne varvi :-(
>
> ako njakoi ima njakakva idea - 6te mu sam mnogo blagodaren!
> o6te po-dobre 6te e ako moga da razbera koga cpu-to se ka4va nad 90%
> ot mysqld, za da moga da go predotvratja :-)
>
> pozdravi
>
> vladi
> ===========================================================================
>= A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
> http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
> Zagora To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
> ===========================================================================
>=
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
- Относно:
- (no subject)
- Изпратено от: vladimirfrish@xxxxxxxxxx (vladimirfrish@xxxxxxxxxx)
|
|
|