aboutsummaryrefslogtreecommitdiff
path: root/www/mohawk/files/mohawk.in
blob: 01ce79c2e958ea158f4b541a4a1930314a5a3317 (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
#!/bin/sh
#
# PROVIDE: mohawk
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable mohawk:
#
# mohawk_enable (bool):         Set it to "YES" to enable mohawk
#                               Default is "NO".
# mohawk_conf (path):           Set full path to config file.
#                               Default is "%%PREFIX%%/etc/mohawk.conf".

. /etc/rc.subr

name="mohawk"
rcvar=`set_rcvar`

load_rc_config $name

: ${mohawk_enable="NO"}
: ${mohawk_conf="%%PREFIX%%/etc/mohawk.conf"}

command=%%PREFIX%%/sbin/mohawk
command_args="-c ${mohawk_conf}"
required_files=${mohawk_conf}

run_rc_command "$1"