Logrotate configuration for nscd

I wrote a section for nscd log rotation

Edited /etc/logrotate.conf file and added:

# system-specific logs may be also be configured here.
/var/log/nscd.log {
missingok
size 100M
create 644 root root
rotate 4
postrotate
/bin/kill -HUP `cat /var/run/nscd/nscd.pid 2> /dev/null` 2> /dev/null || true
endscript
}

I followed the HowTo: The Ultimate Logrotate Command Tutorial with 10 Examples

Advertisement