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