• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[solved] logrotate generates errors

Grafula

Newbie
Wenn logrotate mit der folgenden config läuft bekomme ich regelmässig Fehlermeldungen wie die folgende (die Nummern sind natürlich immer verschieden):

killall: kill -HUP 98362: No such process
killall: kill -HUP 98363: No such process
killall: kill -HUP 98364: No such process
killall: kill -HUP 98408: No such process

Für Hilfe bin ich dankbar.


Code:
errors root
compress
missingok

/PATH/logs/access_log {
	rotate 12
        size 25M
        maillast
        sharedscripts
        create
        postrotate
                /usr/bin/killall -HUP httpd
        endscript
}

/PATH/logs/error_log {
	rotate 2
        size 800k
        sharedscripts
        create
        postrotate
                /usr/bin/killall -HUP httpd
        endscript
}
##(PATH = path zur log file)
 
OP
Grafula

Grafula

Newbie
Habe das script wie folgt geändert und es laeft nun fehlerfrei.

Ich nehme an das sich "sharedscripts" nicht mit "killall" vertragen hat.

Code:
errors root
compress
missingok

/PATH/logs/access_log {
   rotate 12
        size 25M
        maillast
        pretrotate
                apachectl stop
        endscript
        sharedscripts
        create
        postrotate
                apachectl startssl
        endscript
}

/PATH/logs/error_log {
        rotate 2
        pretrotate
                apachectl stop
        endscript
        size 800k
        sharedscripts
        create
        postrotate
                apachectl startssl
        endscript
}
##(PATH = path zur log file)
 
Oben