Add a logrotate script.

This commit is contained in:
Paul Lietar
2013-06-21 11:57:57 +10:00
committed by James Laird
parent 053277eaf0
commit b4e962f6ba
2 changed files with 26 additions and 0 deletions
+10
View File
@@ -72,6 +72,11 @@ do_stop()
--retry=TERM/10/KILL/5
}
do_reload()
{
[ -f $PIDFILE ] && kill -HUP $(cat $PIDFILE) || return 1
}
case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"
@@ -83,6 +88,11 @@ case "$1" in
do_stop
log_end_msg $?
;;
reload)
log_daemon_msg "Reloading $DESC" "$NAME"
do_reload
log_end_msg $?
;;
status)
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
;;