blob: c1d0873bb6c517c0c3f52aaeea0192837d94d190 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: bcfg2
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable bcfg2-server:
# bcfg2_enable (bool): Set it to "YES" to enable bcfg2.
# Default is "NO".
# bcfg2_flags (str): Flags passed to bcfg2 on startup.
# Default is "".
. %%RC_SUBR%%
name="bcfg2"
rcvar=${name}_enable
load_rc_config $name
: ${bcfg2_enable="NO"}
: ${bcfg2_pidfile="/var/run/$name.pid"}
: ${bcfg2_flags="-D ${bcfg2_pidfile}"}
pidfile=${bcfg2_pidfile}
command=%%PREFIX%%/bin/${name}-server
command_interpreter=%%PYTHON_CMD%%
run_rc_command "$1"
|