1#!/bin/sh 2# 3# $NetBSD: rpcbind,v 1.6 2002/01/31 01:26:06 lukem Exp $
| 1#!/bin/sh 2# 3# $NetBSD: rpcbind,v 1.6 2002/01/31 01:26:06 lukem Exp $
|
4# $FreeBSD: head/etc/rc.d/rpcbind 98585 2002-06-21 19:50:01Z dougb $
| 4# $FreeBSD: head/etc/rc.d/rpcbind 101851 2002-08-14 05:44:32Z gordon $
|
5# 6 7# PROVIDE: rpcbind 8# REQUIRE: NETWORKING ntpdate syslogd named ppp 9# KEYWORD: FreeBSD NetBSD 10 11. /etc/rc.subr 12 13name="rpcbind"
| 5# 6 7# PROVIDE: rpcbind 8# REQUIRE: NETWORKING ntpdate syslogd named ppp 9# KEYWORD: FreeBSD NetBSD 10 11. /etc/rc.subr 12 13name="rpcbind"
|
| 14rcvar=`set_rcvar` 15command="/usr/sbin/${name}"
|
14
| 16
|
15# XXX - Executable may be in a different location. The $name variable 16# is different from the variable in rc.conf(5) so the 17# subroutines in rc.subr won't catch it. 18# 19load_rc_config $name 20
| |
21case `${CMD_OSTYPE}` in
| 17case `${CMD_OSTYPE}` in
|
22FreeBSD) 23 pidfile= 24 rcvar="portmap_enable" 25 command="${portmap_program:-/usr/sbin/${name}}" 26 eval ${name}_flags=\"${portmap_flags}\" 27 ;;
| |
28NetBSD)
| 18NetBSD)
|
29 rcvar=$name 30 command="/usr/sbin/${name}"
| |
31 pidfile="/var/run/${name}.pid" 32 ;; 33esac 34
| 19 pidfile="/var/run/${name}.pid" 20 ;; 21esac 22
|
| 23load_rc_config $name
|
35run_rc_command "$1"
| 24run_rc_command "$1"
|