diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0003-implment-systemd-sysv-install-for-OE.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0003-implment-systemd-sysv-install-for-OE.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0003-implment-systemd-sysv-install-for-OE.patch b/meta/recipes-core/systemd/systemd/0003-implment-systemd-sysv-install-for-OE.patch new file mode 100644 index 0000000000..6c595ae733 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0003-implment-systemd-sysv-install-for-OE.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 0fcb6e646401205e17cc6c129441a49023c62cef 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 3/9] implment systemd-sysv-install for OE | ||
5 | |||
6 | Use update-rc.d for enabling/disabling and status command | ||
7 | to check the status of the sysv service | ||
8 | |||
9 | Upstream-Status: Inappropriate [OE-Specific] | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | src/systemctl/systemd-sysv-install.SKELETON | 6 +++--- | ||
14 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
15 | |||
16 | diff --git a/src/systemctl/systemd-sysv-install.SKELETON b/src/systemctl/systemd-sysv-install.SKELETON | ||
17 | index 8c16cf999..9f078a121 100755 | ||
18 | --- a/src/systemctl/systemd-sysv-install.SKELETON | ||
19 | +++ b/src/systemctl/systemd-sysv-install.SKELETON | ||
20 | @@ -32,17 +32,17 @@ case "$1" in | ||
21 | enable) | ||
22 | # call the command to enable SysV init script $NAME here | ||
23 | # (consider optional $ROOT) | ||
24 | - echo "IMPLEMENT ME: enabling SysV init.d script $NAME" | ||
25 | + update-rc.d -f $NAME defaults | ||
26 | ;; | ||
27 | disable) | ||
28 | # call the command to disable SysV init script $NAME here | ||
29 | # (consider optional $ROOT) | ||
30 | - echo "IMPLEMENT ME: disabling SysV init.d script $NAME" | ||
31 | + update-rc.d -f $NAME remove | ||
32 | ;; | ||
33 | is-enabled) | ||
34 | # exit with 0 if $NAME is enabled, non-zero if it is disabled | ||
35 | # (consider optional $ROOT) | ||
36 | - echo "IMPLEMENT ME: checking SysV init.d script $NAME" | ||
37 | + /etc/init.d/$NAME status | ||
38 | ;; | ||
39 | *) | ||
40 | usage ;; | ||
41 | -- | ||
42 | 2.11.0 | ||
43 | |||