File: logrotate

package info (click to toggle)
yrmcds 1.1.8-1.1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 1,000 kB
  • sloc: cpp: 11,157; sh: 148; makefile: 117
file content (17 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# place this file as /etc/logrotate.d/yrmcds

/var/log/yrmcds.log {
	notifempty
	weekly
	rotate 4
	compress
	missingok
	create 0644 nobody nogroup
	postrotate
		if [ -d /run/systemd/system ]; then
			systemctl kill -s SIGHUP yrmcds.service || true
		else
			reload yrmcds >/dev/null 2>&1 || true
		fi
	endscript
}