scripts: Respect $RPCMOUNTDOPTS when restarting rpc.mountd
authorMartin Schwenke <martin@meltin.net>
Tue, 24 Mar 2015 09:12:51 +0000 (20:12 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 17 Apr 2015 01:18:45 +0000 (11:18 +1000)
$RPCMOUNTDOPTS is ignored when restarting rpc.statd due to the service
being unresponsive.  This variable can be used to increase the number
of rpc.mountd threads when there are a lot of clients reattaching so
ignoring it can mean that only a single rpc.mount thread is started.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(Imported from commit 130202d635d8712575fa201a12ef257f4278b862)

config/functions

index 864b7d5be70383593adb775ad4fbeb4f7ec931cd..71ccd0acb60d010cbbc1de7aa1ce6fef4d9dc798 100755 (executable)
@@ -395,7 +395,8 @@ _nfs_restart_rpc_service ()
            echo "Trying to restart $_prog_name [${_p}]"
            killall -q -9 "$_p"
            nfs_dump_some_threads "$_p"
-           $_maybe_background $_p ${MOUNTD_PORT:+-p} $MOUNTD_PORT
+           $_maybe_background $_p $RPCMOUNTDOPTS \
+                              ${MOUNTD_PORT:+-p} $MOUNTD_PORT
            ;;
        rquotad)
            echo "Trying to restart $_prog_name [${_p}]"