summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0004-implment-systemd-sysv-install-for-OE.patch
blob: 83fdb530bfc3104180b587867a01b1aff6d43352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From 70d456fb21de2a80697fa364f08475339d6396c1 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 5 Sep 2015 06:31:47 +0000
Subject: [PATCH 04/31] implment systemd-sysv-install for OE

Use update-rc.d for enabling/disabling and status command
to check the status of the sysv service

Upstream-Status: Inappropriate [OE-Specific]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 src/systemctl/systemd-sysv-install.SKELETON | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/systemctl/systemd-sysv-install.SKELETON b/src/systemctl/systemd-sysv-install.SKELETON
index a53a3e622..5d877b06e 100755
--- a/src/systemctl/systemd-sysv-install.SKELETON
+++ b/src/systemctl/systemd-sysv-install.SKELETON
@@ -30,17 +30,17 @@ case "$1" in
     enable)
         # call the command to enable SysV init script $NAME here
         # (consider optional $ROOT)
-        echo "IMPLEMENT ME: enabling SysV init.d script $NAME"
+        update-rc.d -f $NAME defaults
         ;;
     disable)
         # call the command to disable SysV init script $NAME here
         # (consider optional $ROOT)
-        echo "IMPLEMENT ME: disabling SysV init.d script $NAME"
+        update-rc.d -f $NAME remove
         ;;
     is-enabled)
         # exit with 0 if $NAME is enabled, non-zero if it is disabled
         # (consider optional $ROOT)
-        echo "IMPLEMENT ME: checking SysV init.d script $NAME"
+        /etc/init.d/$NAME status
         ;;
     *)
         usage ;;
-- 
2.13.0