summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/mcstrans/0001-mcstrans-fix-the-init-script.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/selinux/mcstrans/0001-mcstrans-fix-the-init-script.patch')
-rw-r--r--recipes-security/selinux/mcstrans/0001-mcstrans-fix-the-init-script.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes-security/selinux/mcstrans/0001-mcstrans-fix-the-init-script.patch b/recipes-security/selinux/mcstrans/0001-mcstrans-fix-the-init-script.patch
new file mode 100644
index 0000000..5f7163d
--- /dev/null
+++ b/recipes-security/selinux/mcstrans/0001-mcstrans-fix-the-init-script.patch
@@ -0,0 +1,28 @@
1[PATCH] mcstrans: fix the init script
2
3Upstream-Status: Inappropriate [embedded specific]
4
5replace daemon with start-stop-daemon, due to not daemon functions
6
7Signed-off-by: Roy Li <rongqing.li@windriver.com>
8Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
9---
10 src/mcstrans.init | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/mcstrans.init b/src/mcstrans.init
14index 2804ec0..c660290 100644
15--- a/src/mcstrans.init
16+++ b/src/mcstrans.init
17@@ -51,7 +51,7 @@ start(){
18 fi
19
20 unset HOME MAIL USER USERNAME
21- daemon $prog "$EXTRAOPTIONS"
22+ start-stop-daemon --start --quiet --exec $prog -- "$EXTRAOPTIONS"
23 RETVAL=$?
24 echo
25 if test $RETVAL = 0 ; then
26--
271.9.1
28