diff options
-rwxr-xr-x | kvm-manager | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/kvm-manager b/kvm-manager index c92764c..84795fe 100755 --- a/kvm-manager +++ b/kvm-manager @@ -59,7 +59,16 @@ up() { chpst -u "$OWNER" mv "$LOGNAME" "$LOGNAME".$(date +%F_%T%z|tr : .) fi - exec chpst -u "$OWNER:$OWNERGROUP:kvm" /usr/bin/screen -D -m -L -c /etc/screenrc.kvm-manager -S "$VMNAME" -t "$VMNAME" -s /bin/false /usr/bin/kvm $KVMARGS -nographic -name "$VMNAME" -m "$RAM" -smp "${SMP:-1},maxcpus=${MAXCPUS:-8}" -net nic,"macaddr=$MAC" -net "tap,ifname=$TAP,script=no,downscript=no" -no-reboot + exec chpst -u "$OWNER:$OWNERGROUP:kvm" \ + /usr/bin/screen -D -m -L -c /etc/screenrc.kvm-manager -S "$VMNAME" -t "$VMNAME" -s /bin/false \ + /usr/bin/kvm $KVMARGS \ + -nographic \ + -name "$VMNAME" \ + -m "$RAM" \ + -smp "${SMP:-1},maxcpus=${MAXCPUS:-8}" \ + -net nic,"macaddr=$MAC" \ + -net "tap,ifname=$TAP,script=no,downscript=no" \ + -no-reboot } |