aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-14 20:27:38 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-14 20:27:38 -0300
commit534a40046e2f8b2bac2d3d8c465ae0a3c572f97d (patch)
treed52a1625832539dbdba70529b38993f2cfa323e8
parentca6f1fef1bacd0c481f182b6dfd7986830279fce (diff)
downloadkvmx-534a40046e2f8b2bac2d3d8c465ae0a3c572f97d.tar.gz
kvmx-534a40046e2f8b2bac2d3d8c465ae0a3c572f97d.tar.bz2
Try nohup approach at kvmx-shell
-rwxr-xr-xkvmx16
1 files changed, 8 insertions, 8 deletions
diff --git a/kvmx b/kvmx
index 10a0d3e..b91b6bd 100755
--- a/kvmx
+++ b/kvmx
@@ -1794,12 +1794,12 @@ function kvmx_shell {
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
@@ -1807,12 +1807,12 @@ function kvmx_shell {
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