Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | [PATCH] nfs-utils: debianize start-statd |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | make start-statd command to use nfscommon configure, too. |
| 6 | |
| 7 | Signed-off-by: Henrik Riomar <henrik.riomar@ericsson.com> |
| 8 | Signed-off-by: Li Wang <li.wang@windriver.com> |
| 9 | Signed-off-by: Roy Li <rongqing.li@windriver.com> |
| 10 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> |
| 11 | --- |
| 12 | utils/statd/start-statd | 9 ++++++++- |
| 13 | 1 file changed, 8 insertions(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/utils/statd/start-statd b/utils/statd/start-statd |
| 16 | index 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 | -- |
| 40 | 1.9.1 |
| 41 | |