blob: 9e69659e7980eef2022fbe1c9754f6d2111769b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/rpcbind.initd,v 1.2 2006/10/03 14:43:39 uberlord Exp $
depend() {
need localmount
use net
before inetd
before xinetd
}
start() {
ebegin "Starting rpcbind"
rpcbind
local ret=$?
eend ${ret}
# without, if a service depending on portmap is started too fast,
# connecting to portmap will fail -- azarah
# doing that for rpcbind, too -- flameeyes
sleep 1
return ${ret}
}
stop() {
ebegin "Stopping rpcbind"
killall rpcbind
eend $?
}
|