xref: /freebsd/libexec/rc/rc.d/keyserv (revision 848ee2a3a8b47c9905fc51fefcf60eb371edbb98)
1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# Start keyserv if we are running Secure RPC
7
8# PROVIDE: keyserv
9# REQUIRE: ypset
10# BEFORE: DAEMON
11# KEYWORD: shutdown
12
13. /etc/rc.subr
14
15name="keyserv"
16desc="Server for storing private encryption keys"
17rcvar="keyserv_enable"
18command="/usr/sbin/${name}"
19start_precmd="keyserv_prestart"
20
21keyserv_prestart()
22{
23	force_depend rpcbind || return 1
24}
25
26load_rc_config $name
27run_rc_command "$1"
28