mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
2013-05-23 Sancho Lerena <slerena@artica.es>
* util/pandora_logrotate: Fixed several problems due rotation. Now there is no need to restart any process, much safer. Added correct paths for pandora console log on centos and debian. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8193 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
3b779d72c9
commit
e2c182283b
@ -1,3 +1,9 @@
|
|||||||
|
2013-05-23 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* util/pandora_logrotate: Fixed several problems due rotation.
|
||||||
|
Now there is no need to restart any process, much safer.
|
||||||
|
Added correct paths for pandora console log on centos and debian.
|
||||||
|
|
||||||
2013-05-22 Ramon Novoa <rnovoa@artica.es>
|
2013-05-22 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* pandora_server.spec,
|
* pandora_server.spec,
|
||||||
|
@ -3,21 +3,27 @@
|
|||||||
/var/log/pandora/pandora_server.error {
|
/var/log/pandora/pandora_server.error {
|
||||||
weekly
|
weekly
|
||||||
missingok
|
missingok
|
||||||
size 128144
|
size 300000
|
||||||
rotate 3
|
rotate 3
|
||||||
maxage 15
|
maxage 90
|
||||||
compress
|
compress
|
||||||
notifempty
|
notifempty
|
||||||
create 644 root root
|
copytruncate
|
||||||
sharedscripts
|
|
||||||
postrotate
|
|
||||||
/etc/init.d/pandora_server restart
|
|
||||||
endscript
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Only for SUSE / DEBIAN / UBUNTU
|
# DEBIAN / UBUNTU
|
||||||
|
/var/www/pandora_console/pandora_console.log {
|
||||||
|
weekly
|
||||||
|
missingok
|
||||||
|
size 100000
|
||||||
|
rotate 3
|
||||||
|
maxage 15
|
||||||
|
compress
|
||||||
|
notifempty
|
||||||
|
create 644 www-data www-data
|
||||||
|
}
|
||||||
|
|
||||||
/var/www/pandora_console
|
# OpenSUSE, SLES
|
||||||
/srv/www/htdocs/pandora_console/pandora_console.log {
|
/srv/www/htdocs/pandora_console/pandora_console.log {
|
||||||
weekly
|
weekly
|
||||||
missingok
|
missingok
|
||||||
@ -29,17 +35,24 @@
|
|||||||
create 644 wwwrun www
|
create 644 wwwrun www
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Centos, Redhat, Fedora
|
||||||
|
/var/www/html/pandora_console/pandora_console.log {
|
||||||
|
weekly
|
||||||
|
missingok
|
||||||
|
size 100000
|
||||||
|
rotate 3
|
||||||
|
maxage 15
|
||||||
|
compress
|
||||||
|
notifempty
|
||||||
|
create 644 apache root
|
||||||
|
}
|
||||||
|
|
||||||
/var/log/pandora/pandora_snmptrap.log {
|
/var/log/pandora/pandora_snmptrap.log {
|
||||||
weekly
|
weekly
|
||||||
missingok
|
missingok
|
||||||
size 500000
|
size 500000
|
||||||
rotate 1
|
rotate 1
|
||||||
maxage 365
|
maxage 30
|
||||||
notifempty
|
notifempty
|
||||||
create 664 root root
|
copytruncate
|
||||||
postrotate
|
|
||||||
rm /var/log/pandora/pandora_snmptrap.log.index 2> /dev/null
|
|
||||||
/etc/init.d/pandora_server restart
|
|
||||||
endscript
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user