mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
f62ba38aa4
- Unbreak on 4.X. - Update to use new USE_RC_SUBR style. PR: ports/96266 Submitted by: Olivier Beyssac <obld@r14.freenix.org> (maintainer) Reworked by: mnag, jmelo Approved by: mnag (mentor)
31 lines
413 B
Bash
31 lines
413 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: bld
|
|
# REQUIRE: LOGIN
|
|
# BEFORE: mail
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable bld:
|
|
#
|
|
#bld_enable="YES"
|
|
#
|
|
# See bld(8) for flags
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="bld"
|
|
rcvar=${name}_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${bld_enable:-"NO"}
|
|
: ${bld_flags:-"-u bld -g bld"}
|
|
|
|
command="%%PREFIX%%/sbin/bld"
|
|
extra_commands="reload"
|
|
required_dirs=/var/run/bld
|
|
|
|
run_rc_command "$1"
|