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