]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - etc/rc.d/hastd
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.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=`set_rcvar`
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
22 hastd_stop_precmd()
23 {
24         ${hastctl} role init all
25 }
26
27 load_rc_config $name
28 run_rc_command "$1"