|
|
|
|
|
|
Mitglied
Registrierungsdatum: Sep 2005
Ort: Bei mir zuhause
Beiträge: 167
|
Bitte hilfe - was macht dieses Cron Script?
Hallo Leute,
diese Nachricht baut auf einem , leider noch nicht abgeschlossenen, Beitrag an über mein Apache der regelmäßig abraucht. Von potentiellen Speicherproblemen bis hin zu Overflows habe ich leider keinen Fehler gefunden.
Nun ist mir, leider erst jetzt, aufgefallen das das immer zur selben Zeit gegen 5.20 morgens passiert. Irgendetwas haut mir die pid vom Apache weg. Auswirkung: Apache funktioniert nicht mehr, trotz Hintergrundaktivität (mit ps aux herausgefunden).
Was macht dieses Cronscript, gestartet kurz befor die Apache pid verschwindet?
Alle paar Tage wird dieses Cronscript gestartet (war bei der Grundkonfiguration schon integriert):
Code:
#!/bin/sh
#
# man-db cron weekly
set -e
if ! [ -d /var/cache/man ]; then
# Recover from deletion, per FHS.
mkdir -p /var/cache/man
chown man:root /var/cache/man
chmod 2755 /var/cache/man
fi
# regenerate man database
if [ -x /usr/bin/mandb ]; then
# --pidfile /dev/null so it always starts; mandb isn't really a daemon,
# but we want to start it like one.
start-stop-daemon --start --pidfile /dev/null \
--startas /usr/bin/mandb --oknodo --chuid man \
-- --quiet
fi
exit 0
Ich kenne mich leider nicht so gut aus das ich die Auswirkungen kenne. Was ist mandb?
Danke. Vielleicht bekomme ich Apache ja mal zum laufen ohne den alle paar Tage wieder manuell zu starten  ....
|
11. 02. 2007, 16:16
|
#1
|
|
Brest-Fan
Registrierungsdatum: Jan 2003
Beiträge: 5.039
|
Re: Bitte hilfe - was macht dieses Cron Script?
Zitat:
|
Zitat von passbreak2001
Was ist mandb?
|
http://www.linuxinfor.com/german/man8/mandb.html
cu
mathmos
|
11. 02. 2007, 16:29
|
#2
|
|
Mitglied
Registrierungsdatum: Jul 2003
Beiträge: 5.695
|
Re: Bitte hilfe - was macht dieses Cron Script?
Zitat:
|
Zitat von passbreak2001
Was macht dieses Cronscript, gestartet kurz befor die Apache pid verschwindet?
|
Falls keine mandb vorhanden ist wird diese angelegt, ansonsten erneuert.
Mandb ist der Index, auf den man zugreift, um eben die Manpages anzuzeigen.
Zitat:
|
Nun ist mir, leider erst jetzt, aufgefallen das das immer zur selben Zeit gegen 5.20 morgens passiert. Irgendetwas haut mir die pid vom Apache weg.
|
Dann solltest du zuersteinmal nachschauen, was dir die pid "weghaut". Die pid wird vom Kernel direkt vergeben, und ohne pid läuft ein Prozess nicht. Poste mal die Ausgabe von 'ps' - würde mich sehr wundern, wenn da keine pid bei laufenden apache-Instanzen angegeben ist, bzw. das ist nach meinem Verständnis faktisch unmöglich.
|
11. 02. 2007, 16:30
|
#3
|
|
Mitglied
(Threadstarter)
Registrierungsdatum: Sep 2005
Ort: Bei mir zuhause
Beiträge: 167
|
Re: Bitte hilfe - was macht dieses Cron Script?
Zitat:
|
Zitat von Toady
Poste mal die Ausgabe von 'ps' - würde mich sehr wundern, wenn da keine pid bei laufenden apache-Instanzen angegeben ist, bzw. das ist nach meinem Verständnis faktisch unmöglich.
|
Würde ich gerne machen, muss aber halt warten bis der wieder weg ist. Wenn ich Apache restartet habe hat der natürlich eine pid. Irgendetwas scheint aber die pid zu "löschen"?! Habe irgendwie das Gefühl das dieses Cronscript dafür verantwortlich ist. In der error.log von Apache ist nach diesem script folgendes zu finden:
Code:
[Sun Feb 11 05:20:56 2007] [warn] child process 17710 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:58 2007] [warn] child process 16422 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:58 2007] [warn] child process 16544 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:58 2007] [warn] child process 16565 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:58 2007] [warn] child process 16917 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:58 2007] [warn] child process 16222 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:58 2007] [warn] child process 16963 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:58 2007] [warn] child process 17760 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:58 2007] [warn] child process 17796 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:58 2007] [warn] child process 16218 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:59 2007] [warn] child process 17710 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:59 2007] [warn] child process 16422 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:59 2007] [warn] child process 16544 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:59 2007] [warn] child process 16565 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:59 2007] [warn] child process 16917 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:59 2007] [warn] child process 16222 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:59 2007] [warn] child process 16963 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:59 2007] [warn] child process 17760 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:59 2007] [warn] child process 17796 still did not exit, sending a SIGTERM
[Sun Feb 11 05:20:59 2007] [warn] child process 16218 still did not exit, sending a SIGTERM
[Sun Feb 11 05:21:00 2007] [warn] child process 17710 still did not exit, sending a SIGTERM
[Sun Feb 11 05:21:00 2007] [warn] child process 16422 still did not exit, sending a SIGTERM
[Sun Feb 11 05:21:00 2007] [warn] child process 16544 still did not exit, sending a SIGTERM
[Sun Feb 11 05:21:00 2007] [warn] child process 16565 still did not exit, sending a SIGTERM
[Sun Feb 11 05:21:00 2007] [warn] child process 16917 still did not exit, sending a SIGTERM
[Sun Feb 11 05:21:00 2007] [warn] child process 16222 still did not exit, sending a SIGTERM
[Sun Feb 11 05:21:00 2007] [warn] child process 16963 still did not exit, sending a SIGTERM
[Sun Feb 11 05:21:00 2007] [warn] child process 17760 still did not exit, sending a SIGTERM
[Sun Feb 11 05:21:00 2007] [warn] child process 17796 still did not exit, sending a SIGTERM
[Sun Feb 11 05:21:00 2007] [warn] child process 16218 still did not exit, sending a SIGTERM
[Sun Feb 11 05:21:02 2007] [error] child process 17710 still did not exit, sending a SIGKILL
[Sun Feb 11 05:21:02 2007] [error] child process 16422 still did not exit, sending a SIGKILL
[Sun Feb 11 05:21:02 2007] [error] child process 16544 still did not exit, sending a SIGKILL
[Sun Feb 11 05:21:02 2007] [error] child process 16565 still did not exit, sending a SIGKILL
[Sun Feb 11 05:21:02 2007] [error] child process 16917 still did not exit, sending a SIGKILL
[Sun Feb 11 05:21:02 2007] [error] child process 16222 still did not exit, sending a SIGKILL
[Sun Feb 11 05:21:02 2007] [error] child process 16963 still did not exit, sending a SIGKILL
[Sun Feb 11 05:21:02 2007] [error] child process 17760 still did not exit, sending a SIGKILL
[Sun Feb 11 05:21:02 2007] [error] child process 17796 still did not exit, sending a SIGKILL
[Sun Feb 11 05:21:02 2007] [error] child process 16218 still did not exit, sending a SIGKILL
[Sun Feb 11 05:21:03 2007] [notice] caught SIGTERM, shutting down
Will ich dann Apache restarten obwohl alles außer die pid läuft kommt folgende meldung
# /etc/init.d/apache2 restart
no pid file found, not running?
|
11. 02. 2007, 17:04
|
#4
|
|
Alle Zeitangaben in UTC +1. Es ist jetzt 12:09 Uhr.
|
|