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 | --- |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 12 | utils/statd/start-statd | 10 +++++++++- |
| 13 | 1 file changed, 9 insertions(+), 1 deletion(-) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | |
| 15 | diff --git a/utils/statd/start-statd b/utils/statd/start-statd |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 16 | index 2fd6039..f591b34 100755 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | --- a/utils/statd/start-statd |
| 18 | +++ b/utils/statd/start-statd |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 19 | @@ -17,6 +17,14 @@ then |
| 20 | # statd already running - must have been slow to respond. |
| 21 | exit 0 |
| 22 | fi |
| 23 | + |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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. |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 32 | if [ -d /run/systemd/system ]; then |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 33 | # Quit only if the call worked. |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 34 | @@ -25,4 +33,4 @@ fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 35 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 36 | cd / |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | # Fall back to launching it ourselves. |
| 38 | -exec rpc.statd --no-notify |
| 39 | +exec rpc.statd --no-notify $STATDOPTS |
| 40 | -- |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 41 | 2.6.6 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 42 | |