Skip to contentSkip to conversation

Avoid starting rpcbind daemon twice during boot

PATCH In review Yue Tao 3 participants 4 messages Nov 15, 2013

lore
Share & tools
lore

Yue Tao

author
#0 lore raw

PATCH 1/2 Avoid starting rpcbind daemon twice during boot

Check whether rpcbind daemon already run before starting it.

---
 .../initscripts/initscripts-1.0/mountnfs.sh        |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh +6 -3
index 4fffe4e..a03070d 100755
@@ -69,9 +69,12 @@ if test "$rpcbind" = yes
 then
 	if test -x /usr/sbin/rpcbind
 	then
-		echo -n "Starting rpcbind... "
-		start-stop-daemon --start --quiet --exec /usr/sbin/rpcbind
-		sleep 2
+		service rpcbind status > /dev/null
+		if [ $? != 0 ]; then
+			echo -n "Starting rpcbind..."
+			start-stop-daemon --start --quiet --exec /usr/sbin/rpcbind
+			sleep 2
+		fi
 	fi
 fi
 
Signature · 1 line
1.7.5.4
author
#1 lore raw

PATCH 2/2 Add e2fsprogs-mke2fs and e2fsprogs-e2fsck as recommend packages

The mke2fs and e2fsck commands are regular tools of e2fsprogs, so they should be installed.

---
 .../recipes-devtools/e2fsprogs/e2fsprogs_1.42.8.bb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.8.bb +1 -0
index 63c0057..5c78c82 100644
@@ -59,6 +59,7 @@ do_install_append () {
 }
 
 RDEPENDS_e2fsprogs = "e2fsprogs-badblocks"
+RRECOMMENDS_e2fsprogs = "e2fsprogs-mke2fs e2fsprogs-e2fsck"
 
 PACKAGES =+ "e2fsprogs-e2fsck e2fsprogs-mke2fs e2fsprogs-tune2fs e2fsprogs-badblocks"
 PACKAGES =+ "libcomerr libss libe2p libext2fs"
Signature · 1 line
1.7.5.4
#2 lore raw

Re: [PATCH 2/2] Add e2fsprogs-mke2fs and e2fsprogs-e2fsck as recommend packages

Quoted 3 lines · Yue Tao

The mke2fs and e2fsck commands are regular tools of e2fsprogs, so they should be installed.

Could the enforcement of mke2fs conflict with the busybox default install?

Thanks.
Hans

Quoted 24 lines
---
 .../recipes-devtools/e2fsprogs/e2fsprogs_1.42.8.bb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.8.bb +1 -1
index 63c0057..5c78c82 100644
@@ -59,6 +59,7 @@ do_install_append () {
 }
 
 RDEPENDS_e2fsprogs = "e2fsprogs-badblocks"
+RRECOMMENDS_e2fsprogs = "e2fsprogs-mke2fs e2fsprogs-e2fsck"
 
 PACKAGES =+ "e2fsprogs-e2fsck e2fsprogs-mke2fs e2fsprogs-tune2fs e2fsprogs-badblocks"
 PACKAGES =+ "libcomerr libss libe2p libext2fs"
--

1.7.5.4

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw
In reply to Yue Tao
Quoted 2 lines · Yue Tao

Check whether rpcbind daemon already run before starting it.

Please review the commit guidelines for both of your patches and correct the short summary (subject) to be in the form of:

initscripts: Avoid ...

Thanks
SaU!

Quoted 26 lines
---
  .../initscripts/initscripts-1.0/mountnfs.sh        |    9 ++++++---
  1 files changed, 6 insertions(+), 3 deletions(-)
meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh +6 -3
index 4fffe4e..a03070d 100755
@@ -69,9 +69,12 @@ if test "$rpcbind" = yes
  then
  	if test -x /usr/sbin/rpcbind
  	then
-		echo -n "Starting rpcbind... "
-		start-stop-daemon --start --quiet --exec /usr/sbin/rpcbind
-		sleep 2
+		service rpcbind status > /dev/null
+		if [ $? != 0 ]; then
+			echo -n "Starting rpcbind..."
+			start-stop-daemon --start --quiet --exec /usr/sbin/rpcbind
+			sleep 2
+		fi
  	fi
  fi