jsatoh c2d8858d79 2013-04-03 Junichi Satoh <junichi@rworks.jp>
* pandora_server_installer, Makefile.PL: Added support for NetBSD.

	* NetBSD/pandora_server, NetBSD/pandora_server.conf,
	NetBSD/tentacle_server: Added launcher scripts and configuration
	file for NetBSD.

	Contributed by Hiroki SHIMIZU. Thanks!



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7920 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-03 04:59:01 +00:00

37 lines
871 B
Bash
Executable File

#!/bin/sh
# **********************************************************************
# Pandora FMS Server Daemon launcher for NetBSD
# (c) 2013 Hiroki SHIMIZU <shimizu@rworks.jp>
#
# **********************************************************************
# PROVIDE: pandora_server
# REQUIRE: LOGIN mysqld
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable `pandora_server':
#
# pandora_server="YES"
#
. "/etc/rc.subr"
name="pandora_server"
rcvar=${name}
# read configuration and set defaults
pandora_server=${pandora_server:-"NO"}
load_rc_config $name
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
pidfile=/var/run/$name.pid
command=/usr/local/bin/${name}
command_args="-D -P ${pidfile} /usr/local/etc/pandora/pandora_server.conf"
required_files="/usr/local/etc/pandora/pandora_server.conf"
procname="/usr/pkg/bin/perl"
run_rc_command "$1"