~jose/charms/precise/vsm/fix-readme

« back to all changes in this revision

Viewing changes to hooks/stop

  • Committer: Marga Millet
  • Date: 2014-04-13 21:53:17 UTC
  • Revision ID: millet@cisco.com-20140413215317-j95znco4v498mufy
Many fixes to VSM charm: added memory/vncport configurable paramaters. Make HA more user friendly...

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
    is_vsm_vm_running
10
10
    if [ $? -eq 1 ]; then
 
11
        juju-log "Shutting down vsm vm"
11
12
        virsh shutdown ${VSM_NAME}
12
13
    fi
13
14
 
15
16
 
16
17
    is_vsm_vm_running
17
18
    if [ $? -eq 1 ]; then
 
19
        juju-log "Destroying vsm vm"
18
20
        virsh destroy ${VSM_NAME}
19
21
    fi
20
22
}