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
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ base=${0##*/}
start() { start() {
echo -n "Starting sandbox" echo -n "Starting sandbox"
[ -f "$LOCKFILE" ] && return 1 [ -f "$LOCKFILE" ] && return 0
touch $LOCKFILE touch $LOCKFILE
mount --make-rshared / || return $? mount --make-rshared / || return $?