1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/net/plb/files/plb.in
Rong-En Fan 61c774574d - Convert to new rc.d style script
- Bump PORTREVISION

PR:		ports/122814
Submitted by:	Jui-Nan Lin <jnlin at csie.nctu.edu.tw>

- Handle configuration files per Porter's Handbook
- Use DOCSDIR
2008-04-18 04:40:45 +00:00

34 lines
575 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: plb
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable plb:
# plb_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable plb
#
. %%RC_SUBR%%
name="plb"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/plb"
pidfile="/var/run/plb.pid"
required_files=%%PREFIX%%/etc/plb.conf
load_rc_config $name
: ${plb_enable="NO"}
: ${plb_config="%%PREFIX%%/etc/plb.conf"}
command_args="-B -c ${plb_config} -g ${pidfile}"
run_rc_command "$1"