mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
61c774574d
- 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
34 lines
575 B
Bash
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"
|