Hello,

Is there a suggested logrotate script for nfsen (on CentOS 5.8) ?

I was thinking of something like:

/var/log/nfsen.log {
     daily
     rotate 10
     missingok
     notifempty
     sharedscripts
     postrotate
         /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> 
/dev/null || true
         /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> 
/dev/null || true
     endscript
}

Would this be OK, or would it also be necessary to restart nfsen (to 
avoid possible hangs) ?

         if test -n "`ps acx|grep nfsend`"; then
                 /data/nfsen/bin/nfsend stop
                 /data/nfsen/bin/nfsend start
         fi

Any experiences?

Thanks,
Nick


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to