File: openstack-cluster-installer-stop

package info (click to toggle)
openstack-cluster-installer 21
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,212 kB
  • sloc: php: 9,235; sh: 2,936; makefile: 14
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