2002-06-13 22:14:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# Start keyserv if we are running Secure RPC
|
|
|
|
|
|
|
|
# PROVIDE: keyserv
|
2009-06-01 04:55:13 +00:00
|
|
|
# REQUIRE: ypset
|
2002-06-13 22:14:37 +00:00
|
|
|
# BEFORE: DAEMON
|
2008-07-16 19:50:29 +00:00
|
|
|
# KEYWORD: shutdown
|
2002-06-13 22:14:37 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="keyserv"
|
2016-04-23 16:10:54 +00:00
|
|
|
desc="Server for storing private encryption keys"
|
2012-01-14 02:18:41 +00:00
|
|
|
rcvar="keyserv_enable"
|
2002-06-13 22:14:37 +00:00
|
|
|
command="/usr/sbin/${name}"
|
2002-08-14 05:44:32 +00:00
|
|
|
start_precmd="keyserv_prestart"
|
|
|
|
|
|
|
|
keyserv_prestart()
|
|
|
|
{
|
2012-02-14 10:51:24 +00:00
|
|
|
force_depend rpcbind || return 1
|
2002-08-14 05:44:32 +00:00
|
|
|
}
|
2002-06-13 22:14:37 +00:00
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|