#!/bin/sh
# chkconfig: - 81 19
# description: Starts and stops service for yauza-weblog
# processname: yauza-weblog
# pidfile: /var/run/yauza/yauza-weblog.pid

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/rc.d/init.d/functions


# project source function library.
. ctl-functions-yauza.sh

PROJECT=yauza-weblog
LOCKFILE=/var/lock/yauza/$PROJECT
RETVAL=0

start()
{
	# start
	$BINDIR/ctl-yauza-weblog.sh start 2>/dev/null
}

stop()
{
	$BINDIR/ctl-yauza-weblog.sh stop 2>/dev/null
}

restart()
{
	stop
	start
}

status()
{
	$BINDIR/ctl-yauza-weblog.sh status
	RETVAL=$?
	return $RETVAL
}

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

exit $RETVAL

