blob: 55eb2155da336c3e17e85571a1627d4ffb1915a2 (
plain)
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
31
|
#!/bin/sh
# PROVIDE: spread
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable spread:
#
# spread_enable="YES"
# spread_flags="<set as needed>"
#
# See spread(1) for flags
#
. /etc/rc.subr
name=spread
rcvar=spread_enable
command="%%PREFIX%%/sbin/spread"
pidfile=/var/run/${name}.pid
required_files=%%PREFIX%%/etc/${name}.conf
# set defaults
spread_enable=${spread_enable:-"NO"}
load_rc_config ${name}
run_rc_command "$1"
|