Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | From f9078501a1495c9991431d1435d081cd2e830328 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 5 Sep 2015 06:31:47 +0000 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 4 | Subject: [PATCH] implment systemd-sysv-install for OE |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 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> |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 13 | --- |
| 14 | src/systemctl/systemd-sysv-install.SKELETON | 6 +++--- |
| 15 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 16 | |
| 17 | diff --git a/src/systemctl/systemd-sysv-install.SKELETON b/src/systemctl/systemd-sysv-install.SKELETON |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | index 8c16cf99913f..9f078a121469 100755 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 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 ;; |