diff mbox series

nfs-utils: fix rpc.statd path in initscript

Message ID 20250225070341.2349532-1-yi.zhao@windriver.com
State Accepted, archived
Commit 19494e414429b74d2a15b32f21b1b3067d3a41b2
Headers show
Series nfs-utils: fix rpc.statd path in initscript | expand

Commit Message

Yi Zhao Feb. 25, 2025, 7:03 a.m. UTC
The location of rpc.statd is /usr/sbin instead of /sbin.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Khem Raj Feb. 25, 2025, 5:19 p.m. UTC | #1
On Mon, Feb 24, 2025 at 11:04 PM Yi Zhao via lists.openembedded.org
<yi.zhao=eng.windriver.com@lists.openembedded.org> wrote:

> The location of rpc.statd is /usr/sbin instead of /sbin.
>
> Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
> ---
>  meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon
> b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon
> index 6c7b92bdb1..9b7fd17b41 100644
> --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon
> +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon
> @@ -137,7 +137,7 @@ case "$1" in
>             fi
>             start-stop-daemon --start --oknodo --quiet \
>                 --pidfile /run/rpc.statd.pid \
> -               --exec /sbin/rpc.statd
> +               --exec /usr/sbin/rpc.statd


Is this always the case or depends upon usrmerge distro feature


>             RET=$?
>             if [ $RET != 0 ]; then
>                 echo " failed" $RET
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#211865):
> https://lists.openembedded.org/g/openembedded-core/message/211865
> Mute This Topic: https://lists.openembedded.org/mt/111373723/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Yi Zhao Feb. 26, 2025, 1:53 a.m. UTC | #2
On 2/26/25 01:19, Khem Raj wrote:
>
>
> On Mon, Feb 24, 2025 at 11:04 PM Yi Zhao via lists.openembedded.org 
> <https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!YQpIhAuDuk9NODS4b584fgo2EjPOozFOsEHYqDnGZgh-d00DSYJWaXxc7JWZbumpVZQ2D10tDepFo3CAt-Y50g$> 
> <yi.zhao=eng.windriver.com@lists.openembedded.org> wrote:
>
>     The location of rpc.statd is /usr/sbin instead of /sbin.
>
>     Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
>     ---
>      meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon | 2 +-
>      1 file changed, 1 insertion(+), 1 deletion(-)
>
>     diff --git
>     a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon
>     b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon
>     index 6c7b92bdb1..9b7fd17b41 100644
>     --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon
>     +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon
>     @@ -137,7 +137,7 @@ case "$1" in
>                 fi
>                 start-stop-daemon --start --oknodo --quiet \
>                     --pidfile /run/rpc.statd.pid
>     <https://urldefense.com/v3/__http://rpc.statd.pid__;!!AjveYdw8EvQ!YQpIhAuDuk9NODS4b584fgo2EjPOozFOsEHYqDnGZgh-d00DSYJWaXxc7JWZbumpVZQ2D10tDepFo3AoB5EA6A$>
>     \
>     -               --exec /sbin/rpc.statd
>     +               --exec /usr/sbin/rpc.statd
>
>
> Is this always the case or depends upon usrmerge distro feature


This is always the case, because even without usrmerge feature, the 
default location for rpc.statd is in /usr/sbin.


//Yi


>
>
>                 RET=$?
>                 if [ $RET != 0 ]; then
>                     echo " failed" $RET
>     -- 
>     2.25.1
>
>
>     -=-=-=-=-=-=-=-=-=-=-=-
>     Links: You receive all messages sent to this group.
>     View/Reply Online (#211865):
>     https://lists.openembedded.org/g/openembedded-core/message/211865
>     <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/message/211865__;!!AjveYdw8EvQ!YQpIhAuDuk9NODS4b584fgo2EjPOozFOsEHYqDnGZgh-d00DSYJWaXxc7JWZbumpVZQ2D10tDepFo3DaAZ3vDg$>
>     Mute This Topic:
>     https://lists.openembedded.org/mt/111373723/1997914
>     <https://urldefense.com/v3/__https://lists.openembedded.org/mt/111373723/1997914__;!!AjveYdw8EvQ!YQpIhAuDuk9NODS4b584fgo2EjPOozFOsEHYqDnGZgh-d00DSYJWaXxc7JWZbumpVZQ2D10tDepFo3Brq87FwA$>
>     Group Owner: openembedded-core+owner@lists.openembedded.org
>     <mailto:openembedded-core%2Bowner@lists.openembedded.org>
>     Unsubscribe:
>     https://lists.openembedded.org/g/openembedded-core/unsub
>     <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/unsub__;!!AjveYdw8EvQ!YQpIhAuDuk9NODS4b584fgo2EjPOozFOsEHYqDnGZgh-d00DSYJWaXxc7JWZbumpVZQ2D10tDepFo3BUHuBdgg$>
>     [raj.khem@gmail.com]
>     -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon
index 6c7b92bdb1..9b7fd17b41 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfscommon
@@ -137,7 +137,7 @@  case "$1" in
 	    fi
 	    start-stop-daemon --start --oknodo --quiet \
 		--pidfile /run/rpc.statd.pid \
-	        --exec /sbin/rpc.statd
+	        --exec /usr/sbin/rpc.statd
 	    RET=$?
 	    if [ $RET != 0 ]; then
 	        echo " failed" $RET