summaryrefslogtreecommitdiffstats
path: root/abs/core/nfs-utils/nfs-common
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/nfs-utils/nfs-common')
-rw-r--r--abs/core/nfs-utils/nfs-common10
1 files changed, 4 insertions, 6 deletions
diff --git a/abs/core/nfs-utils/nfs-common b/abs/core/nfs-utils/nfs-common
index 9902ec4..7b16b4b 100644
--- a/abs/core/nfs-utils/nfs-common
+++ b/abs/core/nfs-utils/nfs-common
@@ -2,9 +2,6 @@
daemon_name=nfs-common
-# daemon dependencies
-DAEMON_DEPENDS=('rpcbind')
-
NEED_STATD=
STATD_OPTS=
NEED_IDMAPD=
@@ -124,8 +121,7 @@ get_pid() {
case "$1" in
start)
- ck_depends ${DAEMON_DEPENDS[@]}
-
+ ck_daemon rpcbind && { echo -n "Start rpcbind first." >&2; stat_die; }
rc=0
if [ "$NEED_STATD" = yes ]; then
stat_busy "Starting $STATD_DAEMON_NAME daemon"
@@ -161,6 +157,8 @@ case "$1" in
if [ $rc -gt 0 ]; then
stat_fail
exit $rc
+ else
+ stat_done
fi
if [ "$NEED_IDMAPD" = yes ]; then
@@ -314,4 +312,4 @@ case "$1" in
echo "usage: $0 {start|stop|status|restart}"
esac
exit 0
- \ No newline at end of file
+