blob: ce09739171ca79c56b32a8f3435b179e7caecd8a (
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
#
# $FreeBSD$
#
# PROVIDE: hiawatha
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
# Add the following line(s) to /etc/rc.conf:
# hiawatha_enable (bool): Set to "NO" by default, set it
# to "YES" to enable hiawatha.
. /etc/rc.subr
name=hiawatha
rcvar=hiawatha_enable
load_rc_config $name
: ${hiawatha_enable:=NO}
command="%%PREFIX%%/sbin/${name}"
pidfile=${hiawatha_pidfile:-"/var/run/hiawatha.pid"}
stop_postcmd="rm -f ${pidfile}"
run_rc_command "$1"
|