Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] nfs-utils: fix start-statd
@ 2014-10-20  5:11 rongqing.li
  2014-10-20  5:17 ` Rongqing Li
  0 siblings, 1 reply; 2+ messages in thread
From: rongqing.li @ 2014-10-20  5:11 UTC (permalink / raw)
  To: openembedded-core

From: "Roy.Li" <rongqing.li@windriver.com>

1. add /bin to PATH of start-statd, otherwise systemctl can not find.
2. drop error of start-statd

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
 .../nfs-utils/nfs-utils/fix-the-start-statd.patch  |   30 ++++++++++++++++++++
 .../nfs-utils/nfs-utils_1.3.0.bb                   |    1 +
 2 files changed, 31 insertions(+)
 create mode 100644 meta/recipes-connectivity/nfs-utils/nfs-utils/fix-the-start-statd.patch

diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/fix-the-start-statd.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/fix-the-start-statd.patch
new file mode 100644
index 0000000..58a9c60
--- /dev/null
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/fix-the-start-statd.patch
@@ -0,0 +1,30 @@
+[PATCH] fix the start-statd
+
+
+
+1. add /bin/ to PATH, since systemctl is installed under /bin/
+2. redirect error to /dev/null
+
+Signed-off-by: Roy Li <rongqing.li@windriver.com>
+---
+ utils/statd/start-statd |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/utils/statd/start-statd b/utils/statd/start-statd
+index cde3583..098ce70 100644
+--- a/utils/statd/start-statd
++++ b/utils/statd/start-statd
+@@ -4,8 +4,8 @@
+ # /var/run/rpc.statd.pid).
+ # It should run statd with whatever flags are apropriate for this
+ # site.
+-PATH=/sbin:/usr/sbin
+-if systemctl start statd.service
++PATH=/sbin:/usr/sbin:/bin
++if systemctl start statd.service 2>/dev/null
+ then :
+ else
+     exec rpc.statd --no-notify
+-- 
+1.7.10.4
+
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb
index f1ef6d9..4933e10 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb
@@ -32,6 +32,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
            file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \
            file://0001-statd-fixed-the-with-statdpath-flag.patch \
            file://fix-a-Gcc-undefined-behavior.patch \
+           file://fix-the-start-statd.patch \
 "
 
 SRC_URI[md5sum] = "6e93a7997ca3a1eac56bf219adab72a8"
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nfs-utils: fix start-statd
  2014-10-20  5:11 [PATCH] nfs-utils: fix start-statd rongqing.li
@ 2014-10-20  5:17 ` Rongqing Li
  0 siblings, 0 replies; 2+ messages in thread
From: Rongqing Li @ 2014-10-20  5:17 UTC (permalink / raw)
  To: rongqing.li; +Cc: openembedded-core

Sorry, please drop this patch.

-Roy

On 10/20/2014 01:11 PM, rongqing.li@windriver.com wrote:
> From: "Roy.Li" <rongqing.li@windriver.com>
>
> 1. add /bin to PATH of start-statd, otherwise systemctl can not find.
> 2. drop error of start-statd
>
> Signed-off-by: Roy.Li <rongqing.li@windriver.com>
> ---
>   .../nfs-utils/nfs-utils/fix-the-start-statd.patch  |   30 ++++++++++++++++++++
>   .../nfs-utils/nfs-utils_1.3.0.bb                   |    1 +
>   2 files changed, 31 insertions(+)
>   create mode 100644 meta/recipes-connectivity/nfs-utils/nfs-utils/fix-the-start-statd.patch
>
> diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/fix-the-start-statd.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/fix-the-start-statd.patch
> new file mode 100644
> index 0000000..58a9c60
> --- /dev/null
> +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/fix-the-start-statd.patch
> @@ -0,0 +1,30 @@
> +[PATCH] fix the start-statd
> +
> +
> +
> +1. add /bin/ to PATH, since systemctl is installed under /bin/
> +2. redirect error to /dev/null
> +
> +Signed-off-by: Roy Li <rongqing.li@windriver.com>
> +---
> + utils/statd/start-statd |    4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/utils/statd/start-statd b/utils/statd/start-statd
> +index cde3583..098ce70 100644
> +--- a/utils/statd/start-statd
> ++++ b/utils/statd/start-statd
> +@@ -4,8 +4,8 @@
> + # /var/run/rpc.statd.pid).
> + # It should run statd with whatever flags are apropriate for this
> + # site.
> +-PATH=/sbin:/usr/sbin
> +-if systemctl start statd.service
> ++PATH=/sbin:/usr/sbin:/bin
> ++if systemctl start statd.service 2>/dev/null
> + then :
> + else
> +     exec rpc.statd --no-notify
> +--
> +1.7.10.4
> +
> diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb
> index f1ef6d9..4933e10 100644
> --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb
> +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb
> @@ -32,6 +32,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
>              file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \
>              file://0001-statd-fixed-the-with-statdpath-flag.patch \
>              file://fix-a-Gcc-undefined-behavior.patch \
> +           file://fix-the-start-statd.patch \
>   "
>
>   SRC_URI[md5sum] = "6e93a7997ca3a1eac56bf219adab72a8"
>

-- 
Best Reagrds,
Roy | RongQing Li


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-20  5:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20  5:11 [PATCH] nfs-utils: fix start-statd rongqing.li
2014-10-20  5:17 ` Rongqing Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox