#!/bin/sh
#
# Exim startup script.
#
### BEGIN INIT INFO
# Provides: logstats
# Required-Start: $network $remote_fs
# Required-Stop: $network $remote_fs
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: ppsw log statistics gathering
### END INIT INFO
#
# $Cambridge: hermes/src/stats/etc/rc.logs,v 1.2 2005/04/14 12:12:37 fanf2 Exp $

DIR=/data/stats/ppsw
SCRIPT=/opt/stats/scripts

case "$1" in
stop)
	kill `cat $DIR/logmux.pid`
	;;
start)
	su msupport $SCRIPT/logrun
	;;
restart)
	stop
	start
	;;
*)
	echo "Usage: $0 {start|stop|restart}"
	exit 1
esac
