xref: /freebsd/libexec/rc/rc.d/statd (revision d34048812292b714a0bf99967270d18fe3097c62)
1#!/bin/sh
2#
3# FreeBSD History: src/etc/rc.d/nfslocking,v 1.11 2004/10/07 13:55:26 mtm Exp
4# $FreeBSD$
5#
6
7# PROVIDE: statd
8# REQUIRE: nfsclient nfsd rpcbind
9# BEFORE:  DAEMON
10# KEYWORD: nojail shutdown
11
12. /etc/rc.subr
13
14name="statd"
15desc="host status monitoring daemon"
16rcvar=rpc_statd_enable
17command="/usr/sbin/rpc.${name}"
18start_precmd='statd_precmd'
19
20# Make sure that we are either an NFS client or server, and that we get
21# the correct flags from rc.conf(5).
22#
23statd_precmd()
24{
25	force_depend rpcbind || return 1
26
27	rc_flags=${rpc_statd_flags}
28}
29
30load_rc_config $name
31run_rc_command $1
32