freebsd-ports/net-mgmt/pandorafms_server/files/pandora_server.in
Motoyuki Konno c679424d17 Add Pandora FMS 4.0.1 - a Flexible Monitoring System.
WMI client 1.3.16 - a WMI (Windows Management Instrumentation) client
                        which is needed for Pandora FMS.
Submitted by:	KIKUCHI Koichiro <koichiro@rworks.jp>
		Junichi Satoh <junichi@junichi.org>
WWW;		http://pandorafms.org/
Feature safe:	yes
2012-04-21 12:27:40 +00:00

29 lines
526 B
Bash

#!/bin/sh
# PROVIDE: pandora_server
# REQUIRE: LOGIN mysql
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable `pandora_server':
#
# pandora_server_enable="YES"
#
. "/etc/rc.subr"
name="pandora_server"
rcvar=`set_rcvar`
load_rc_config $name
# set defaults
: ${pandora_server_enable:=NO}
pidfile=/var/run/$name.pid
required_files="%%ETCDIR%%/pandora_server.conf"
command="%%PREFIX%%/bin/${name}"
command_args="-D -P ${pidfile} %%ETCDIR%%/pandora_server.conf"
procname="%%PERL%%"
run_rc_command "$1"