2001-06-16 09:16:14 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-06-14 00:14:37 +02:00
|
|
|
# $NetBSD: rpcbind,v 1.6 2002/01/31 01:26:06 lukem Exp $
|
|
|
|
# $FreeBSD$
|
2001-06-16 09:16:14 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: rpcbind
|
2002-06-14 00:14:37 +02:00
|
|
|
# REQUIRE: NETWORKING ntpdate syslogd named ppp
|
|
|
|
# KEYWORD: FreeBSD NetBSD
|
2001-06-16 09:16:14 +02:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="rpcbind"
|
|
|
|
|
2002-06-14 00:14:37 +02:00
|
|
|
# XXX - Executable may be in a different location. The $name variable
|
|
|
|
# is different from the variable in rc.conf(5) so the
|
|
|
|
# subroutines in rc.subr won't catch it.
|
|
|
|
#
|
2001-06-16 09:16:14 +02:00
|
|
|
load_rc_config $name
|
2002-06-14 00:14:37 +02:00
|
|
|
|
|
|
|
case `${CMD_OSTYPE}` in
|
|
|
|
FreeBSD)
|
|
|
|
pidfile=
|
|
|
|
rcvar="portmap_enable"
|
2002-06-21 21:50:01 +02:00
|
|
|
command="${portmap_program:-/usr/sbin/${name}}"
|
2002-06-14 00:14:37 +02:00
|
|
|
eval ${name}_flags=\"${portmap_flags}\"
|
|
|
|
;;
|
|
|
|
NetBSD)
|
|
|
|
rcvar=$name
|
|
|
|
command="/usr/sbin/${name}"
|
|
|
|
pidfile="/var/run/${name}.pid"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2001-06-16 09:16:14 +02:00
|
|
|
run_rc_command "$1"
|