summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/mcstrans/mcstrans-fix-the-init-script.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/selinux/mcstrans/mcstrans-fix-the-init-script.patch')
-rw-r--r--recipes-security/selinux/mcstrans/mcstrans-fix-the-init-script.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-security/selinux/mcstrans/mcstrans-fix-the-init-script.patch b/recipes-security/selinux/mcstrans/mcstrans-fix-the-init-script.patch
new file mode 100644
index 0000000..79be090
--- /dev/null
+++ b/recipes-security/selinux/mcstrans/mcstrans-fix-the-init-script.patch
@@ -0,0 +1,32 @@
1From 4d918a9679d2902ca2d41fe769a4d76f07a67b5f Mon Sep 17 00:00:00 2001
2From: Roy Li <rongqing.li@windriver.com>
3Date: Wed, 6 Nov 2019 22:13:33 +0800
4Subject: [PATCH] mcstrans: fix the init script
5
6replace daemon with start-stop-daemon, due to not daemon functions
7
8Upstream-Status: Inappropriate [embedded specific]
9
10Signed-off-by: Roy Li <rongqing.li@windriver.com>
11Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
12Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
13---
14 src/mcstrans.init | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/src/mcstrans.init b/src/mcstrans.init
18index 8b4737d..86c89ea 100644
19--- a/src/mcstrans.init
20+++ b/src/mcstrans.init
21@@ -51,7 +51,7 @@ start(){
22 fi
23
24 unset HOME MAIL USER USERNAME
25- daemon $prog "$EXTRAOPTIONS"
26+ start-stop-daemon --start --quiet --exec $prog -- "$EXTRAOPTIONS"
27 RETVAL=$?
28 echo
29 if test $RETVAL = 0 ; then
30--
312.7.4
32