Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux logrotate output of command

pkill -STOP legacyappname
cp /var/log/something.log /var/log/something.log.backup
cat /dev/null > /var/log/something.log
pkill -CONT legacyappname
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #linux #logrotate #output #command
ADD COMMENT
Topic
Name
1+4 =