diff options
| author | Sagaert Johan <sagaert.johan@skynet.be> | 2014-06-30 13:56:10 +0200 |
|---|---|---|
| committer | Peter Korsgaard <peter@korsgaard.com> | 2014-06-30 23:35:01 +0200 |
| commit | 56141c1232e39acbec619a432a9aff510cea2eaf (patch) | |
| tree | 74149f911f66973c6ca1762590e1008a1fc8b6fc /package/rpcbind/S30rpcbind | |
| parent | 4414f7f165a32ba5934261d23a882b1152024cd1 (diff) | |
| download | buildroot-56141c1232e39acbec619a432a9aff510cea2eaf.tar.gz buildroot-56141c1232e39acbec619a432a9aff510cea2eaf.zip | |
rpcbind : add startup script
rpcbind must be started at boot time.
Without this any nfs mount will fail.
Signed-off-by: Sagaert Johan <sagaert.johan@skynet.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/rpcbind/S30rpcbind')
| -rw-r--r-- | package/rpcbind/S30rpcbind | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/package/rpcbind/S30rpcbind b/package/rpcbind/S30rpcbind new file mode 100644 index 0000000000..85ebd6f1b8 --- /dev/null +++ b/package/rpcbind/S30rpcbind @@ -0,0 +1,38 @@ +#!/bin/sh +# +# Starts rpcbind. +# + +start() { + echo -n "Starting rpcbind: " + umask 077 + start-stop-daemon -S -q -p /var/run/rpcbind.pid --exec /usr/bin/rpcbind + echo "OK" +} +stop() { + echo -n "Stopping rpcbind daemon: " + start-stop-daemon -K -q -p /var/run/rpcbind.pid + echo "OK" +} +restart() { + stop + start +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart|reload) + restart + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $? + |

