diff --git a/install.sh b/install.sh index 589310d72d..0a859578b4 100755 --- a/install.sh +++ b/install.sh @@ -710,7 +710,7 @@ VMM_EXEC_XEN3_SCRIPTS="src/vmm_mad/remotes/xen/cancel \ src/vmm_mad/remotes/xen/xen3/migrate \ src/vmm_mad/remotes/xen/restore \ src/vmm_mad/remotes/xen/reboot \ - src/vmm_mad/remotes/xen/reset \ + src/vmm_mad/remotes/xen/xen3/reset \ src/vmm_mad/remotes/xen/save \ src/vmm_mad/remotes/xen/poll \ src/vmm_mad/remotes/xen/attach_disk \ @@ -728,7 +728,7 @@ VMM_EXEC_XEN4_SCRIPTS="src/vmm_mad/remotes/xen/cancel \ src/vmm_mad/remotes/xen/xen4/migrate \ src/vmm_mad/remotes/xen/restore \ src/vmm_mad/remotes/xen/reboot \ - src/vmm_mad/remotes/xen/reset \ + src/vmm_mad/remotes/xen/xen4/reset \ src/vmm_mad/remotes/xen/save \ src/vmm_mad/remotes/xen/poll \ src/vmm_mad/remotes/xen/attach_disk \ diff --git a/src/vmm_mad/remotes/xen/reset b/src/vmm_mad/remotes/xen/xen3/reset similarity index 100% rename from src/vmm_mad/remotes/xen/reset rename to src/vmm_mad/remotes/xen/xen3/reset diff --git a/src/vmm_mad/remotes/xen/xen4/reset b/src/vmm_mad/remotes/xen/xen4/reset new file mode 100755 index 0000000000..121253bae4 --- /dev/null +++ b/src/vmm_mad/remotes/xen/xen4/reset @@ -0,0 +1,24 @@ +#!/bin/bash + +# -------------------------------------------------------------------------- # +# Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +source $(dirname $0)/xenrc +source $(dirname $0)/../../scripts_common.sh + +deploy_id=$1 + +exec_and_log "$XM_REBOOT -F $deploy_id" "Could not reset domain $deploy_id"