else
if [ "${STDIN[0]}" == "up" ] || [ "${STDIN[0]}" == "start" ] || [ "${STDIN[0]}" == "restart" ]; then
# Process command, nohup version, stdout and stderr are redirected to a file
- #nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOGDIR/nohup 2>&1 &
- #tail -F $LOGDIR/nohup
+ nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOGDIR/nohup 2>&1 &
+ tail -F $LOGDIR/nohup
# Process command, disown version, stdout are preserved
- $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} &
- disown -h
+ #$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} &
+ #disown -h
else
$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1}
fi
else
if [ "${STDIN[0]}" == "up" ] || [ "${STDIN[0]}" == "start" ] || [ "${STDIN[0]}" == "restart" ]; then
# Process command, nohup version
- #nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOGDIR/nohup 2>&1 &
- #tail -F $LOGDIR/nohup
+ nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOGDIR/nohup 2>&1 &
+ tail -F $LOGDIR/nohup
# Process command, disown version
- $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} &
- disown -h
+ #$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} &
+ #disown -h
else
$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1}
fi