[OPEN-ILS-GENERAL] Suggestion for logrotate

Syd Weidman s.weidman at uwinnipeg.ca
Thu Sep 4 14:24:02 EDT 2008


Hello!

I want to implement a logrotate script for Evergreen (osrfsys.log is more than 2GB already), but I need to know what to put in the postrotate section. For example, in the default logrotate script for apache2, there is this bit:


	sharedscripts
	postrotate
		if [ -f /var/run/apache2.pid ]; then
			/etc/init.d/apache2 restart > /dev/null
		fi
	endscript

What provision should be made for getting the opensrf processes to write to the newly rotated logfile? Should I just run:

su -c '/openils/bin/osrf_ctl.sh -c /openils/conf/opensrf_core.xml -a restart_all > /dev/null' opensrf







Sydney Weidman
Systems Supervisor,
University of Winnipeg Library
Ph. (204)786-9031





More information about the Open-ils-general mailing list