#!/bin/sh
# 
# PROVIDE: ossechids
# REQUIRE: DAEMON
# BEFORE:  LOGIN

. /etc/rc.subr

name="ossechids"
rcvar=`set_rcvar`

load_rc_config $name

: ${ossechids_enable="NO"}
: ${ossechids_user="ossec"}
: ${ossechids_group="ossec"}

start_cmd=${name}_start
stop_cmd=${name}_stop
restart_cmd=${name}_restart
status_cmd=${name}_status

command="/usr/local/ossec-hids/bin/ossec-control"
required_files="/usr/local/ossec-hids/etc/ossec.conf"

ossechids_start() {
	$command start
}

ossechids_stop() {
	$command stop
}

ossechids_restart() {
	$command restart
}

ossechids_status() {
	$command status
}

run_rc_command "$1"
