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 <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Dan Walsh 2011-11-10 12:16:07 -05:00 committed by Eric Paris
parent 6c2ad1ce52
commit c00affcc3e

View File

@ -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 $?