blob: 85002290f061991677b2af2e0316d4adfc66ed91 [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---
12 utils/statd/start-statd | 9 ++++++++-
13 1 file changed, 8 insertions(+), 1 deletion(-)
14
15diff --git a/utils/statd/start-statd b/utils/statd/start-statd
16index ec9383b..3969b8c 100755
17--- a/utils/statd/start-statd
18+++ b/utils/statd/start-statd
19@@ -6,6 +6,13 @@
20 # site.
21 PATH="/sbin:/usr/sbin:/bin:/usr/bin"
22
23+# Read config
24+DEFAULTFILE=/etc/default/nfs-common
25+NEED_IDMAPD=
26+if [ -f $DEFAULTFILE ]; then
27+ . $DEFAULTFILE
28+fi
29+
30 # First try systemd if it's installed.
31 if systemctl --help >/dev/null 2>&1; then
32 # Quit only if the call worked.
33@@ -13,4 +20,4 @@ if systemctl --help >/dev/null 2>&1; then
34 fi
35
36 # Fall back to launching it ourselves.
37-exec rpc.statd --no-notify
38+exec rpc.statd --no-notify $STATDOPTS
39--
401.9.1
41