blob: ede0dcefc49f085be45b0f3e005371a89a21079a [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001[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---
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012 utils/statd/start-statd | 10 +++++++++-
13 1 file changed, 9 insertions(+), 1 deletion(-)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014
15diff --git a/utils/statd/start-statd b/utils/statd/start-statd
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016index 2fd6039..f591b34 100755
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017--- a/utils/statd/start-statd
18+++ b/utils/statd/start-statd
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019@@ -17,6 +17,14 @@ then
20 # statd already running - must have been slow to respond.
21 exit 0
22 fi
23+
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024+# 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.
Brad Bishop6e60e8b2018-02-01 10:27:11 -050032 if [ -d /run/systemd/system ]; then
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033 # Quit only if the call worked.
Brad Bishop6e60e8b2018-02-01 10:27:11 -050034@@ -25,4 +33,4 @@ fi
Patrick Williamsc124f4f2015-09-15 14:41:29 -050035
Brad Bishop6e60e8b2018-02-01 10:27:11 -050036 cd /
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037 # Fall back to launching it ourselves.
38-exec rpc.statd --no-notify
39+exec rpc.statd --no-notify $STATDOPTS
40--
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500412.6.6
Patrick Williamsc124f4f2015-09-15 14:41:29 -050042