| 1 |
#!/sbin/runscript |
| 2 |
# Copyright 1999-2005 Gentoo Foundation |
| 3 |
# Distributed under the terms of the GNU General Public License v2 |
| 4 |
# $Header$ |
| 5 |
|
| 6 |
depend() { |
| 7 |
use net |
| 8 |
before inetd |
| 9 |
before xinetd |
| 10 |
} |
| 11 |
|
| 12 |
start() { |
| 13 |
ebegin "Starting rpcbind" |
| 14 |
rpcbind |
| 15 |
local ret=$? |
| 16 |
eend ${ret} |
| 17 |
|
| 18 |
# without, if a service depending on portmap is started too fast, |
| 19 |
# connecting to portmap will fail -- azarah |
| 20 |
# doing that for rpcbind, too -- flameeyes |
| 21 |
sleep 1 |
| 22 |
return ${ret} |
| 23 |
} |
| 24 |
|
| 25 |
stop() { |
| 26 |
ebegin "Stopping rpcbind" |
| 27 |
killall rpcbind |
| 28 |
eend $? |
| 29 |
} |