0003-implment-systemd-sysv-install-for-OE.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From f9078501a1495c9991431d1435d081cd2e830328 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Sat, 5 Sep 2015 06:31:47 +0000
  4. Subject: [PATCH] implment systemd-sysv-install for OE
  5. Use update-rc.d for enabling/disabling and status command
  6. to check the status of the sysv service
  7. Upstream-Status: Inappropriate [OE-Specific]
  8. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  9. ---
  10. src/systemctl/systemd-sysv-install.SKELETON | 6 +++---
  11. 1 file changed, 3 insertions(+), 3 deletions(-)
  12. diff --git a/src/systemctl/systemd-sysv-install.SKELETON b/src/systemctl/systemd-sysv-install.SKELETON
  13. index a2a0059fef..7f95791d9b 100755
  14. --- a/src/systemctl/systemd-sysv-install.SKELETON
  15. +++ b/src/systemctl/systemd-sysv-install.SKELETON
  16. @@ -34,17 +34,17 @@ case "$1" in
  17. enable)
  18. # call the command to enable SysV init script $NAME here
  19. # (consider optional $ROOT)
  20. - echo "IMPLEMENT ME: enabling SysV init.d script $NAME"
  21. + update-rc.d -f $NAME defaults
  22. ;;
  23. disable)
  24. # call the command to disable SysV init script $NAME here
  25. # (consider optional $ROOT)
  26. - echo "IMPLEMENT ME: disabling SysV init.d script $NAME"
  27. + update-rc.d -f $NAME remove
  28. ;;
  29. is-enabled)
  30. # exit with 0 if $NAME is enabled, non-zero if it is disabled
  31. # (consider optional $ROOT)
  32. - echo "IMPLEMENT ME: checking SysV init.d script $NAME"
  33. + /etc/init.d/$NAME status
  34. ;;
  35. *)
  36. usage ;;