From c00affcc3eec349ab0366a9afb33ba7163d6b6e1 Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Thu, 10 Nov 2011 12:16:07 -0500 Subject: [PATCH] policycoreutils: sandbox: init script run twice is still successful If sandbox init script is run multiple times to start it should still return 0 rather than an error. Things should still be set up. Signed-off-by: Eric Paris Acked-by: Dan Walsh --- policycoreutils/sandbox/sandbox.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policycoreutils/sandbox/sandbox.init b/policycoreutils/sandbox/sandbox.init index d1ccdc2e..8aed8764 100644 --- a/policycoreutils/sandbox/sandbox.init +++ b/policycoreutils/sandbox/sandbox.init @@ -27,7 +27,7 @@ base=${0##*/} start() { echo -n "Starting sandbox" - [ -f "$LOCKFILE" ] && return 1 + [ -f "$LOCKFILE" ] && return 0 touch $LOCKFILE mount --make-rshared / || return $?