summaryrefslogtreecommitdiffstats
path: root/www/mohawk/files/mohawk.in
blob: 81e50de93f821216074802422188467f3a58135f (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
#!/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=mohawk_enable

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"
OpenPOWER on IntegriCloud