File: openstack-cluster-installer-stop

package info (click to toggle)
openstack-cluster-installer 43.0.18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,484 kB
  • sloc: php: 19,127; sh: 18,142; ruby: 75; makefile: 31; xml: 8
file content (12 lines) | stat: -rwxr-xr-x 255 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

KVM_PID_FILE=/var/lib/openstack-cluster-installer/vm.pid

if [ -e ${KVM_PID_FILE} ] ; then
	VM_PID=`cat ${KVM_PID_FILE}`
	echo "===> Found PID running: ${VM_PID}. Killing process..."
	kill -9 ${VM_PID} || true
	rm -f ${KVM_PID_FILE}
fi