File: greenbone-security-assistant.logrotate

package info (click to toggle)
greenbone-security-assistant 6.0.11%2Bdfsg.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,740 kB
  • ctags: 868
  • sloc: ansic: 23,157; xml: 776; sh: 338; python: 249; makefile: 20
file content (17 lines) | stat: -rw-r--r-- 365 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/gsad.log {
  missingok
  notifempty
  create 640 root adm
  daily
  rotate 7
  compress
  postrotate
    if [ -s /var/run/gsad.pid ]; then kill -1 `cat /var/run/gsad.pid`; fi
    openvaslogs=`ls /var/log/openvas/gsad.log.*`
    if [ -n "$openvaslogs" ]; then
        chown root:adm $openvaslogs
        chmod 640 $openvaslogs
    fi
  endscript
}