Line 0
Link Here
|
|
|
1 |
#!/bin/sh |
2 |
|
3 |
# PROVIDE: parkverbot |
4 |
# REQUIRE: securelevel |
5 |
# KEYWORD: nojail shutdown |
6 |
# |
7 |
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf |
8 |
# to enable this service: |
9 |
# |
10 |
# parkverbot_enable (bool): Set to NO by default. |
11 |
# Set it to YES to enable parkverbot. |
12 |
# parkverbot_file (str): Devices passed to parkverbot(8) |
13 |
# Default: none |
14 |
|
15 |
. /etc/rc.subr |
16 |
|
17 |
name=parkverbot |
18 |
rcvar=${name}_enable |
19 |
|
20 |
: ${parkverbot_enable:="NO"} |
21 |
: ${parkverbot_file:=""} |
22 |
|
23 |
pidfile="/var/run/${name}.pid" |
24 |
procname=/usr/local/sbin/${name} |
25 |
command=/usr/sbin/daemon |
26 |
command_args="-f -p ${pidfile} ${procname} \${${name}_file}" |
27 |
|
28 |
load_rc_config ${name} |
29 |
run_rc_command "$1" |