2001-06-16 07:16:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-06-13 22:14:37 +00:00
|
|
|
# $NetBSD: rpcbind,v 1.6 2002/01/31 01:26:06 lukem Exp $
|
|
|
|
# $FreeBSD$
|
2001-06-16 07:16:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: rpcbind
|
2002-06-13 22:14:37 +00:00
|
|
|
# REQUIRE: NETWORKING ntpdate syslogd named ppp
|
|
|
|
# KEYWORD: FreeBSD NetBSD
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="rpcbind"
|
2002-08-14 05:44:32 +00:00
|
|
|
rcvar=`set_rcvar`
|
|
|
|
command="/usr/sbin/${name}"
|
2002-06-13 22:14:37 +00:00
|
|
|
|
2002-09-06 16:18:05 +00:00
|
|
|
case ${OSTYPE} in
|
2002-06-13 22:14:37 +00:00
|
|
|
NetBSD)
|
|
|
|
pidfile="/var/run/${name}.pid"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2002-08-14 05:44:32 +00:00
|
|
|
load_rc_config $name
|
2001-06-16 07:16:14 +00:00
|
|
|
run_rc_command "$1"
|