1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/hastd 204077 2010-02-18 23:20:15Z pjd $
| 3# $FreeBSD: head/etc/rc.d/hastd 204083 2010-02-19 09:18:26Z pjd $
|
4# 5 6# PROVIDE: hastd 7# REQUIRE: NETWORKING syslogd 8# BEFORE: DAEMON
| 4# 5 6# PROVIDE: hastd 7# REQUIRE: NETWORKING syslogd 8# BEFORE: DAEMON
|
| 9# KEYWORD: nojail shutdown
|
9 10. /etc/rc.subr 11 12name="hastd" 13rcvar=`set_rcvar` 14pidfile="/var/run/${name}.pid" 15command="/sbin/${name}" 16hastctl="/sbin/hastctl" 17required_files="/etc/hast.conf" 18stop_precmd="hastd_stop_precmd" 19required_modules="geom_gate:g_gate" 20 21hastd_stop_precmd() 22{ 23 ${hastctl} role init all 24} 25 26load_rc_config $name 27run_rc_command "$1"
| 10 11. /etc/rc.subr 12 13name="hastd" 14rcvar=`set_rcvar` 15pidfile="/var/run/${name}.pid" 16command="/sbin/${name}" 17hastctl="/sbin/hastctl" 18required_files="/etc/hast.conf" 19stop_precmd="hastd_stop_precmd" 20required_modules="geom_gate:g_gate" 21 22hastd_stop_precmd() 23{ 24 ${hastctl} role init all 25} 26 27load_rc_config $name 28run_rc_command "$1"
|