]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - etc/rc.d/hastd
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / etc / rc.d / hastd
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: hastd
7 # REQUIRE: NETWORKING syslogd
8 # BEFORE:  DAEMON
9 # KEYWORD: nojail shutdown
10
11 . /etc/rc.subr
12
13 name="hastd"
14 rcvar="hastd_enable"
15 pidfile="/var/run/${name}.pid"
16 command="/sbin/${name}"
17 hastctl="/sbin/hastctl"
18 required_files="/etc/hast.conf"
19 stop_precmd="hastd_stop_precmd"
20 required_modules="geom_gate:g_gate"
21 extra_commands="reload"
22
23 hastd_stop_precmd()
24 {
25         ${hastctl} role init all
26 }
27
28 load_rc_config $name
29 run_rc_command "$1"