gcc50: Build lto-wrapper even if buildworld is not LTO enabled.
[dragonfly.git] / etc / rc.d / keyserv
blob416977d6ba68287a8ca1a2f2b0761cea555f7f4c
1 #!/bin/sh
3 # $FreeBSD: src/etc/rc.d/keyserv,v 1.2 2002/08/14 05:44:32 gordon Exp $
4 # $DragonFly: src/etc/rc.d/keyserv,v 1.3 2005/11/19 21:47:32 swildner Exp $
7 # Start keyserv if we are running Secure RPC
10 # PROVIDE: keyserv
11 # REQUIRE: ypbind
12 # BEFORE: DAEMON
14 . /etc/rc.subr
16 name="keyserv"
17 rcvar=`set_rcvar`
18 command="/usr/sbin/${name}"
19 start_precmd="keyserv_prestart"
21 keyserv_prestart()
23 if ! checkyesno rpcbind_enable && \
24 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
25 then
26 force_depend rpcbind || return 1
29 return 0
32 load_rc_config $name
33 run_rc_command "$1"