#!/bin/sh
#
# chkconfig: 2345 88 0
# description: Log rotation
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin

test -x /usr/sbin/logrotate || exit 0

case "$1" in
    start)
	echo -n "Log rotation:"
	logrotate /etc/logrotate.conf
	echo " logrotate"
	;;
    stop|restart|reload|force-reload)
	;;
    *)
	echo "Usage: /etc/init.d/logrotate start"
	exit 1
	;;
esac

exit 0
