Sha256: 384865e67d086c4beab3586d8a16fe0bde0ad455f5eb304fd2ee2ed23115a606

Contents?: true

Size: 442 Bytes

Versions: 7

Compression:

Stored size: 442 Bytes

Contents

#!/bin/bash 
# This is responsible for checking to make sure that the master instance is up and running
# and if it is not, take over the master role and reconfigure the cloud
case $1 in 
start) 
    instance start_maintain
    ;; 
stop) 
    instance stop_maintain
    ;; 
status)
    ps aux | awk '{print $2}' | grep `cat /var/run/pool_maintain.pid`
    ;; 
*) 
    echo "Syntax incorrect. You need one of {start|stop|status}" 
    ;; 
esac

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
auser-poolparty-0.0.8 config/cloud_master_takeover
auser-poolparty-0.0.9 config/cloud_master_takeover
auser-poolparty-0.1.0 config/cloud_master_takeover
auser-poolparty-0.1.1 config/cloud_master_takeover
auser-poolparty-0.1.2 config/cloud_master_takeover
dreadpiratepj-poolparty-0.0.8 config/cloud_master_takeover
jtzemp-poolparty-0.1.2 config/cloud_master_takeover