#!/bin/bash
# chkconfig: 345 98 55

function usage{
	base=$(basename $0)
	echo -e "Usage:\n$base {start|stop|restart|status}"
}

function start{
	<comando di start del servizio>
}

function stop{
	<comando di stop del servizio>
}

function status{
	<print dello stato del processo (/var/run/*.pid)>
}

if [ "$1" == "" ]
then
	usage
	exit 1
fi

case "$1" in
	"start")
		start;;
	"stop")
		stop;;
	"restart")
		stop
		sleep 3
		start;;
	"status")
		status;;
esac

