1[PATCH] nfs-utils: debianize start-statd 2 3Upstream-Status: Pending 4 5make start-statd command to use nfscommon configure, too. 6 7Signed-off-by: Henrik Riomar <henrik.riomar@ericsson.com> 8Signed-off-by: Li Wang <li.wang@windriver.com> 9Signed-off-by: Roy Li <rongqing.li@windriver.com> 10Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> 11--- 12 utils/statd/start-statd | 10 +++++++++- 13 1 file changed, 9 insertions(+), 1 deletion(-) 14 15diff --git a/utils/statd/start-statd b/utils/statd/start-statd 16index 2fd6039..f591b34 100755 17--- a/utils/statd/start-statd 18+++ b/utils/statd/start-statd 19@@ -17,6 +17,14 @@ then 20 # statd already running - must have been slow to respond. 21 exit 0 22 fi 23+ 24+# Read config 25+DEFAULTFILE=/etc/default/nfs-common 26+NEED_IDMAPD= 27+if [ -f $DEFAULTFILE ]; then 28+ . $DEFAULTFILE 29+fi 30+ 31 # First try systemd if it's installed. 32 if [ -d /run/systemd/system ]; then 33 # Quit only if the call worked. 34@@ -25,4 +33,4 @@ fi 35 36 cd / 37 # Fall back to launching it ourselves. 38-exec rpc.statd --no-notify 39+exec rpc.statd --no-notify $STATDOPTS 40-- 412.6.6 42 43