projects
/
invirt/packages/invirt-remote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use xm reboot instead of a destroy and create to reboot VMs
[invirt/packages/invirt-remote.git]
/
files
/
usr
/
sbin
/
invirt-vmcontrol
diff --git
a/files/usr/sbin/invirt-vmcontrol
b/files/usr/sbin/invirt-vmcontrol
index
5a47705
..
1391db4
100755
(executable)
--- a/
files/usr/sbin/invirt-vmcontrol
+++ b/
files/usr/sbin/invirt-vmcontrol
@@
-17,17
+17,13
@@
case "$ACTION" in
list|vcpu-list|uptime)
xm "$ACTION" "$MACHINE"
;;
list|vcpu-list|uptime)
xm "$ACTION" "$MACHINE"
;;
- destroy|shutdown)
+ destroy|shutdown|reboot)
xm "$ACTION" "$MACHINE"
/usr/sbin/invirt-update-conserver </dev/null >/dev/null 2>&1 &
;;
xm "$ACTION" "$MACHINE"
/usr/sbin/invirt-update-conserver </dev/null >/dev/null 2>&1 &
;;
- install|create|reboot)
+ install|create)
shift; shift;
shift; shift;
- if [ "$ACTION" = "reboot" ]; then
- xm destroy "$MACHINE" 2>/dev/null
- else
- xm list "$MACHINE" >/dev/null 2>/dev/null && echo "$MACHINE already exists" && exit 1
- fi
+ xm list "$MACHINE" >/dev/null 2>/dev/null && echo "$MACHINE already exists" && exit 1
if [ "$ACTION" = "install" ]; then
xm create invirt-database machine_name="$ORIGMACHINE" installer_options="$(printf '%q ' "$@")"
elif [ -n "$1" ]; then
if [ "$ACTION" = "install" ]; then
xm create invirt-database machine_name="$ORIGMACHINE" installer_options="$(printf '%q ' "$@")"
elif [ -n "$1" ]; then