diff options
Diffstat (limited to 'community/gvmd/gvmd.logrotate')
-rw-r--r-- | community/gvmd/gvmd.logrotate | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/community/gvmd/gvmd.logrotate b/community/gvmd/gvmd.logrotate index c7708289d0..453462575f 100644 --- a/community/gvmd/gvmd.logrotate +++ b/community/gvmd/gvmd.logrotate @@ -1,11 +1,13 @@ -# logrotate for gvmd +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +# Daemon ignore HUP so we use 'copytruncate' instead of 'create' +# with safe file size to prevent losing log entries. + /var/log/gvm/gvmd.log { - rotate 4 - weekly - compress - delaycompress - missingok - postrotate - /bin/kill -HUP `pidof gvmd` - endscript + compress + missingok + notifempty + sharedscripts + copytruncate + maxsize 10M } |