blob: 4556ab5da620e8418b4090962f92ec407af0de48 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001From f9078501a1495c9991431d1435d081cd2e830328 Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 5 Sep 2015 06:31:47 +0000
Andrew Geissler82c905d2020-04-13 13:39:40 -05004Subject: [PATCH] implment systemd-sysv-install for OE
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005
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>
Andrew Geissler82c905d2020-04-13 13:39:40 -050012
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013---
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
Andrew Geissler615f2f12022-07-15 14:00:58 -050018index a2a0059fef..7f95791d9b 100755
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080019--- a/src/systemctl/systemd-sysv-install.SKELETON
20+++ b/src/systemctl/systemd-sysv-install.SKELETON
Andrew Geissler615f2f12022-07-15 14:00:58 -050021@@ -34,17 +34,17 @@ case "$1" in
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022 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 ;;