#!/bin/sh
#
# $FreeBSD: ports/net-mgmt/xymon-server/files/xymon-server.in,v 1.1 2012/08/05 23:19:36 dougb Exp $
#

# PROVIDE: xymon_server
# REQUIRE: DAEMON

. /etc/rc.subr

name="xymon_server"
rcvar="xymon_server_enable"

load_rc_config "$name"
: ${xymon_server_enable:="NO"}

command="su -m xymon -c '/usr/local/www/xymon/server/xymon.sh'"
start_cmd="su -m xymon -c '/usr/local/www/xymon/server/xymon.sh start'"
stop_cmd="su -m xymon -c '/usr/local/www/xymon/server/xymon.sh stop'"
status_cmd="su -m xymon -c '/usr/local/www/xymon/server/xymon.sh status'"
reload_cmd="su -m xymon -c '/usr/local/www/xymon/server/xymon.sh reload'"
restart_cmd="su -m xymon -c '/usr/local/www/xymon/server/xymon.sh restart'"
pidfile="/var/log/xymon/xymond.pid"

run_rc_command "$1"
# eof
