summaryrefslogtreecommitdiffstats
path: root/source/n/rpcbind/rc.rpc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/n/rpcbind/rc.rpc (renamed from source/n/portmap/rc.rpc)18
1 files changed, 11 insertions, 7 deletions
diff --git a/source/n/portmap/rc.rpc b/source/n/rpcbind/rc.rpc
index 43492329b..c850c5560 100644
--- a/source/n/portmap/rc.rpc
+++ b/source/n/rpcbind/rc.rpc
@@ -10,10 +10,10 @@
#
rpc_start() {
- if [ -x /sbin/rpc.portmap -a -x /sbin/rpc.statd ]; then
- if ! ps axc | grep -q rpc.portmap ; then
- echo "Starting RPC portmapper: /sbin/rpc.portmap"
- /sbin/rpc.portmap
+ if [ -x /sbin/rpcbind -a -x /sbin/rpc.statd ]; then
+ if ! ps axc | grep -q rpcbind ; then
+ echo "Starting RPC portmapper: /sbin/rpcbind -l $1"
+ /sbin/rpcbind -l $1
fi
if ! ps axc | grep -q rpc.statd ; then
echo "Starting RPC NSM (Network Status Monitor): /sbin/rpc.statd"
@@ -24,7 +24,7 @@ rpc_start() {
echo " these required daemons is not executable or is not present"
echo " on your system:"
echo
- echo " /sbin/rpc.portmap or /sbin/rpc.statd"
+ echo " /sbin/rpcbind or /sbin/rpc.statd"
echo
fi
}
@@ -32,11 +32,11 @@ rpc_start() {
rpc_stop() {
killall rpc.statd 2> /dev/null
sleep 1
- killall rpc.portmap 2> /dev/null
+ killall rpcbind 2> /dev/null
sleep 1
killall -9 rpc.statd 2> /dev/null # make sure :)
sleep 1
- killall -9 rpc.portmap 2> /dev/null # make sure :)
+ killall -9 rpcbind 2> /dev/null # make sure :)
sleep 1
}
@@ -47,6 +47,10 @@ rpc_restart() {
case "$1" in
'start')
+ # Warm restart by default (see "man rpcbind" for details about the -w option)
+ rpc_start -w
+ ;;
+'cold_start') # Start without -w option
rpc_start
;;
'stop')