~gnuoy/charms/trusty/glance/1537769

« back to all changes in this revision

Viewing changes to scripts/health_checks.d/service_ports_live

  • Committer: Jerry Seutter
  • Date: 2013-03-01 18:37:23 UTC
  • mto: (29.2.13 ha)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: jerry.seutter@canonical.com-20130301183723-crlqa3vfzcj8x6ku
Adding health scripts to glance charm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# Validate that service ports are active
 
3
HEALTH_DIR=`dirname $0`
 
4
SCRIPTS_DIR=`dirname $HEALTH_DIR`
 
5
. $SCRIPTS_DIR/scriptrc
 
6
set -e
 
7
 
 
8
# Grab any OPENSTACK_PORT* environment variables
 
9
openstack_ports=`env| awk -F '=' '(/OPENSTACK_PORT/){print $2}'`
 
10
for port in $openstack_ports
 
11
do
 
12
    netstat -ln | grep -q $port
 
13
done