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