daemon: Add a logrotate configuration file.
This commit is contained in:
parent
52e75bea3b
commit
18039a2564
4 changed files with 28 additions and 1 deletions
13
daemon/data/core-daemon.logrotate
Normal file
13
daemon/data/core-daemon.logrotate
Normal file
|
@ -0,0 +1,13 @@
|
|||
/var/log/core-daemon.log {
|
||||
rotate 7
|
||||
daily
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
sharedscripts
|
||||
postrotate
|
||||
if [ -r /var/run/core-daemon.pid ]; then
|
||||
kill -USR1 $(cat /var/run/core-daemon.pid) > /dev/null 2>&1
|
||||
fi
|
||||
endscript
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue