xref: /freebsd/libexec/rc/rc.d/keyserv (revision af23369a6deaaeb612ab266eb88b8bb8d560c322)
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