# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-lock "$LOCKDIR"/vserver."$(echo "$VSERVER_DIR" | tr -dc a-zA-Z0-9)".startup
+
+lock "$LOCKDIR"/vserver."$($_VSERVER_INFO "$VSERVER_DIR" CANONIFY)".startup
if isVserverRunning "$VSERVER_DIR"; then
- echo $"vserver '$VSERVER_NAME' already running; aborting..." >&2
- exit 1
+ warning $"vserver '$VSERVER_NAME' already running"
+ exit 0
fi
function cleanup()
{
set +e
- test -z "$startsync_pipe" || rm -f "$startsync_pipe"
+ test -z "$startsync_pipe" || $_RM -f "$startsync_pipe"
test -z "$is_started" || { unlock; return 0; }
if test "$is_configured" -a -z "$is_executed"; then
pushd "$VSERVER_DIR"/vdir/ >/dev/null
is_configured=1
if $_VSERVER_INFO - FEATURE migrate; then
+ ${NICE_CMD[@]} \
$_CHBIND "${CHBIND_OPTS[@]}" -- \
$_VCONTEXT --create "${OPTS_VCONTEXT_CREATE[@]}" -- \
${USE_VNAMESPACE:+$_VNAMESPACE --set -- } \
"${INITCMD_START[@]}"
else
if test "$_IS_FAKEINIT"; then
- startsync_pipe=$(mktemp /tmp/vserver-start.XXXXXX)
- rm -f "$startsync_pipe"
- mkfifo -m600 "$startsync_pipe" ## safe, since mkfifo does not follow symlinks
+ startsync_pipe=$($_MKTEMP /tmp/vserver-start.XXXXXX)
+ $_RM -f "$startsync_pipe"
+ $_MKFIFO -m600 "$startsync_pipe" ## safe, since mkfifo does not follow symlinks
fi
${NICE_CMD[@]} \