Hey all,
Im trying to use file system attributes to make log files oppened in append
mode for writing (chattr +a logfile). This is my logrotate configuration file :
/var/log/jboss-as/server.log{ create 0640 root jboss-as-logs
rotate 4 dateext daily compress sharedscripts
prerotate /usr/bin/chattr -a
/var/log/jboss-as/server.log endscript
postrotate /bin/kill -HUP `cat /var/run/syslogd.pid
2>/dev/null` 2>/dev/null || true /usr/bin/chattr +a
/var/log/jboss-as/server.log endscript}
The log file is rotated compressed, closed BUT not opened (created) by rsyslog.
Any ideas ?
Thx in advance.
Anwar
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.