Xavier CHERIF a écrit :
Bonjour,
quelqu'un sait-il comment logadm fait pour tourner le fichier syslog 1
fois par semaine ?
car dans la crontab, logadm est bien lance tous les jours. Dans
logadm.conf j'ai
/var/log/syslog -C 8 -P 'Thu Sep 15 01:10:00 2005' -a 'kill -HUP `cat
/var/run/syslog.pid`'
-C 8 : nombre de fichier 8
-P '... : derniere rotation le'
-a '... : commande a execute apres la rotation
Bjr,
La réponse est dans la page man de logadm
Two options control when a log file is rotated. They are: -s
size -p period.
[...]
If neither of these two options are specified, the default
conditions for rotating a log file are: -s 1b -p 1w, which
means the log file is only rotated if the size is non-zero
and if at least 1 week has passed since the last time it was
rotated.
et franchement j'arrive pas a trouver une explication clair de ce
probleme. ca ne me derrange pas
que ca tourne une fois par semaine, mais j'ai pas le doute.
------------------------------------------------------------------------
_______________________________________________
Solaris_fr liste de diffusion en français pour Solaris, sur toutes architectures
[email protected]
http://x86.sun.com/mailman/listinfo/solaris_fr
--
Jean Michel Vansteene,
Equipe Informatique de Centre - SDAR
INRA - Versailles-Grignon - RD 10 - 78026 Versailles Cedex
Tél : 01 30 83 33 30 - Fax : 01 30 83 33 33
_______________________________________________
Solaris_fr liste de diffusion en français pour Solaris, sur toutes architectures
[email protected]
http://x86.sun.com/mailman/listinfo/solaris_fr