2009-06-29 11:20:25 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: perlbal
|
2011-04-23 19:29:10 +02:00
|
|
|
# REQUIRE: LOGIN
|
2011-04-23 09:32:55 +02:00
|
|
|
# KEYWORK: shutdown
|
2009-06-29 11:20:25 +02:00
|
|
|
|
2010-03-27 01:15:24 +01:00
|
|
|
. /etc/rc.subr
|
2009-06-29 11:20:25 +02:00
|
|
|
|
|
|
|
name="perlbal"
|
|
|
|
command="%%PREFIX%%/bin/perlbal"
|
|
|
|
|
|
|
|
load_rc_config "$name"
|
2011-04-23 19:29:10 +02:00
|
|
|
|
2009-06-29 11:20:25 +02:00
|
|
|
: ${perlbal_enable="NO"}
|
2011-04-23 09:32:55 +02:00
|
|
|
: ${perlbal_configuration="%%PREFIX%%/etc/perlbal/perlbal.conf"}
|
2011-04-23 19:29:10 +02:00
|
|
|
|
|
|
|
required_files="$perlbal_configuration"
|
|
|
|
|
|
|
|
command_args="--config $required_files --daemon"
|
2009-06-29 11:20:25 +02:00
|
|
|
|
|
|
|
run_rc_command "$1"
|
|
|
|
|