summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/mcstrans/mcstrans-fix-the-init-script.patch
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2019-11-14 09:48:52 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2019-12-19 11:09:21 -0500
commitf6ae2e82ed5756a29b014afa477285775e2c68ac (patch)
treeed1512665c4256f1367c012494dd7b3eff973e6d /recipes-security/selinux/mcstrans/mcstrans-fix-the-init-script.patch
parent62ee1a51c20bb82d529bb104e6d21d6fa43ad218 (diff)
downloadmeta-selinux-f6ae2e82ed5756a29b014afa477285775e2c68ac.tar.gz
mcstrans: uprev to 2.9 (20190315)
* Rebase patches Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
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