mirror of
https://git.freebsd.org/ports.git
synced 2025-06-24 06:00:30 -04:00
Use SUB_FILES for pkg-message processing Use ETCDIR where appropriate PR: ports/176334 Approved by: James O'Gorman <james@netinertia.co.uk> (maintainer)
28 lines
464 B
Bash
28 lines
464 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: bbstored
|
|
# REQUIRE: NETWORKING
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following line to /etc/rc.conf to enable bbstored:
|
|
#
|
|
# bbstored_enable="YES"
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="bbstored"
|
|
rcvar=bbstored_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${bbstored_enable:="NO"}
|
|
: ${bbstored_flags:="%%ETCDIR%%/bbstored.conf"}
|
|
|
|
pidfile=${bbstored_pidfile:-"/var/run/bbstored.pid"}
|
|
|
|
command="%%PREFIX%%/sbin/bbstored"
|
|
extra_commands="reload"
|
|
|
|
run_rc_command "$1"
|