/etc/logrotate.d/psacct

/etc/logrotate.d/psacct

1 예시 1[ | ]

# Logrotate file for psacct RPM
 
/var/account/pacct {
#prerotate loses accounting records, let's no
#   prerotate
#       /usr/sbin/accton
#   endscript
    compress
    delaycompress
    notifempty
    daily
    rotate 31
    create 0600 root root
    postrotate
       /usr/sbin/accton /var/account/pacct
    endscript
}

2 예시 2[ | ]

# Logrotate file for psacct RPM
 
/var/account/pacct {
#prerotate loses accounting records, let's no
#   prerotate
#	if [ -f /var/lock/subsys/psacct ]; then
#       	/usr/sbin/accton
#	fi
#   endscript
    compress
    delaycompress
    notifempty
    daily
    rotate 31
    create 0600 root root
    postrotate
        if [ -f /var/lock/subsys/psacct ]; then
             /usr/sbin/accton /var/account/pacct
        fi
    endscript
}

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}