File: openvas-scanner.logrotate

package info (click to toggle)
openvas-scanner 5.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,320 kB
  • sloc: ansic: 4,642; sh: 746; makefile: 6
file content (17 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/var/log/openvas/openvassd.messages {
  missingok
  notifempty
  create 640 root adm
  daily
  rotate 7
  compress
  postrotate
    if [ -s /var/run/openvassd.pid ]; then kill -1 `cat /var/run/openvassd.pid`; fi
    openvaslogs=`ls /var/log/openvas/openvassd.messages.*`
    if [ -n "$openvaslogs" ]; then
        chown root:adm $openvaslogs
        chmod 640 $openvaslogs
    fi
  endscript
}