Apache Prozess fehlt noch Logrotate

Apache, Lighttpd, nginx, Cherokee
r00ty
Posts: 747
Joined: 2003-03-17 15:32

Apache Prozess fehlt noch Logrotate

Post by r00ty » 2007-10-14 10:26

Hallo!
Ich hab das Problem dass ungefähr jeden Monat plötzlich mein Apache Prozess weg ist. Leider finde ich nicht heraus woran es liegen kann.
Meine einzige Idee ist, dass es irgendwie mit Logrotate zusammenhängt, da wenn ich den Apache neu starte das immer in ein neues Logfile kommt. Aber was sollte dabei schief gehen?
Mein System ist ein Debian Etch
Hier ein paar Logs/Files

error.log.1

Code: Select all

... { alles okay } ...
[Sun Oct 14 06:25:39 2007] [warn] child process 18254 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:39 2007] [warn] child process 11028 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:39 2007] [warn] child process 30703 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:39 2007] [warn] child process 18255 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:39 2007] [warn] child process 30704 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:39 2007] [warn] child process 27520 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:39 2007] [warn] child process 28762 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:39 2007] [warn] child process 23410 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:39 2007] [warn] child process 30082 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:39 2007] [warn] child process 4790 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:41 2007] [warn] child process 18254 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:41 2007] [warn] child process 11028 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:41 2007] [warn] child process 30703 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:41 2007] [warn] child process 18255 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:41 2007] [warn] child process 30704 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:41 2007] [warn] child process 27520 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:41 2007] [warn] child process 28762 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:41 2007] [warn] child process 23410 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:41 2007] [warn] child process 30082 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:41 2007] [warn] child process 4790 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:43 2007] [warn] child process 18254 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:43 2007] [warn] child process 11028 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:43 2007] [warn] child process 30703 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:43 2007] [warn] child process 18255 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:43 2007] [warn] child process 30704 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:43 2007] [warn] child process 27520 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:43 2007] [warn] child process 28762 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:43 2007] [warn] child process 23410 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:43 2007] [warn] child process 30082 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:43 2007] [warn] child process 4790 still did not exit, sending a SIGTERM
[Sun Oct 14 06:25:45 2007] [error] child process 18254 still did not exit, sending a SIGKILL
[Sun Oct 14 06:25:45 2007] [error] child process 11028 still did not exit, sending a SIGKILL
[Sun Oct 14 06:25:45 2007] [error] child process 30703 still did not exit, sending a SIGKILL
[Sun Oct 14 06:25:45 2007] [error] child process 18255 still did not exit, sending a SIGKILL
[Sun Oct 14 06:25:45 2007] [error] child process 30704 still did not exit, sending a SIGKILL
[Sun Oct 14 06:25:45 2007] [error] child process 27520 still did not exit, sending a SIGKILL
[Sun Oct 14 06:25:45 2007] [error] child process 28762 still did not exit, sending a SIGKILL
[Sun Oct 14 06:25:45 2007] [error] child process 23410 still did not exit, sending a SIGKILL
[Sun Oct 14 06:25:45 2007] [error] child process 30082 still did not exit, sending a SIGKILL
[Sun Oct 14 06:25:45 2007] [error] child process 4790 still did not exit, sending a SIGKILL
[Sun Oct 14 06:25:46 2007] [notice] caught SIGTERM, shutting down
{Ende des Logfile}


/etc/logrotate.d/apache2

Code: Select all

/var/log/apache2/*.log {
    weekly
    missingok
    rotate 52
    compress
    delaycompress
    notifempty
    create 640 root adm
    sharedscripts
    postrotate
        if [ -f /var/run/apache2.pid ]; then
            /etc/init.d/apache2 restart > /dev/null
        fi
    endscript
}


Ich bin für jeden Hinweis dankbar...

User avatar
daemotron
Administrator
Administrator
Posts: 2635
Joined: 2004-01-21 17:44

Re: Apache Prozess fehlt noch Logrotate

Post by daemotron » 2007-10-15 11:18

Warum eigentlich SIGTERM (ausgelöst durch restart) und nicht SIGHUP (normalerweise mit "reload" ausgelöst) - das würde nach einem rotieren der Logdateien eigentlich reichen.