#!/bin/sh
# autoswap:        Init, set up & stats of autoswap
# chkconfig:    - 08 92

WITHOUT_RC_COMPAT=1     # Do not load RH compatibility interface.
. /etc/init.d/functions # Source function library.

serv=/usr/bin/autoswap

start(){
	action "Start autoswap:" $serv start
	RETVAL=$?
	return $RETVAL
}

stop(){
	action "Stop autoswap:" $serv stop
	RETVAL=$?
	return $RETVAL
}

restart(){
	stop
	start
}

case "$1" in # See how we were called.
	start|stop|restart|reload) $1;;
	status)			 $serv status; RETVAL=$?;;
	*)	msg_usage	"${0##*/} [start|stop|restart]"
		RETVAL=1
esac

exit $RETVAL
