Patchwork [1/1] systemd-udevd: fix invoking init script failed

login
register
mail settings
Submitter Hongxu Jia
Date June 18, 2013, 12:25 p.m.
Message ID <eac0003697c78bfc0dfe8f6ae322dad37f802b75.1371557553.git.hongxu.jia@windriver.com>
Download mbox | patch
Permalink /patch/51919/
State Accepted
Commit 5722129be3d8355b7365b84b63bb4a048526db89
Headers show

Comments

Hongxu Jia - June 18, 2013, 12:25 p.m.
root@emenlow-noemgd:~# /etc/init.d/systemd-udevd restart
Stopping udevd
Starting udev
corrupt queue file
root@emenlow-noemgd:~# /etc/init.d/systemd-udevd status
udevd is stopped
root@emenlow-noemgd:~# ps
3805 root      8728 S    /lib/systemd/systemd-udevd

The process name is systemd-udevd rather than udev which is
used in systemd-udevd's init script.

[YOCTO #4746]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-core/systemd/systemd/init | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Ross Burton - June 18, 2013, 12:54 p.m.
On 18 June 2013 13:25, Hongxu Jia <hongxu.jia@windriver.com> wrote:
> root@emenlow-noemgd:~# /etc/init.d/systemd-udevd restart
> Stopping udevd
> Starting udev
> corrupt queue file
> root@emenlow-noemgd:~# /etc/init.d/systemd-udevd status
> udevd is stopped
> root@emenlow-noemgd:~# ps
> 3805 root      8728 S    /lib/systemd/systemd-udevd
>
> The process name is systemd-udevd rather than udev which is
> used in systemd-udevd's init script.
>
> [YOCTO #4746]

Signed-off-by: Ross Burton <ross.burton@intel.com>

Ross

Patch

diff --git a/meta/recipes-core/systemd/systemd/init b/meta/recipes-core/systemd/systemd/init
index 7e67a50..41c4136 100644
--- a/meta/recipes-core/systemd/systemd/init
+++ b/meta/recipes-core/systemd/systemd/init
@@ -83,7 +83,7 @@  case "$1" in
     ;;
   stop)
     echo "Stopping udevd"
-    start-stop-daemon --stop --name udevd --quiet
+    start-stop-daemon --stop --name systemd-udevd --quiet
     ;;
   restart)
     $0 stop
@@ -91,7 +91,7 @@  case "$1" in
     $0 start
     ;;
   status)
-    status udevd
+    status systemd-udevd
     ;;
   *)
     echo "Usage: $0 {start|stop|status|restart}"