Sha256: 0cfec3618f38867db3fc9e6692b57a26f9b9d3e127f206fa489bd2036eb0f9b2

Contents?: true

Size: 1.01 KB

Versions: 44

Compression:

Stored size: 1.01 KB

Contents

#!/bin/bash
#
# chkconfig: 35 90 12
# description: Spot instance watcher
#
# Get function from functions library
. /etc/init.d/functions
# Start the service spot-watcher
start() {
        initlog -c "echo -n Starting spot-watcher: "
        /bin/spot-watcher 2> /var/log/spot-watcher_error.log 1> var/log/spot-watcher.log &
        ### Create the lock file ###
        echo $! > /var/run/spot-watcher.pid
        touch /var/lock/subsys/spot-watcher
        success $"spot-watcher startup"
        echo
}
# Restart the service spot-watcher
stop() {
        initlog -c "echo -n Stopping spot-watcher: "
        killproc spot-watcher
        ### Now, delete the lock file ###
        rm -f /var/lock/subsys/spot-watcher
        echo
}
### main logic ###
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  status)
        status spot-watcher
        ;;
  restart|reload|condrestart)
        stop
        start
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|status}"
        exit 1
esac
exit 0

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
sumomo-0.10.8 data/sumomo/sources/spot-watcher.sh
sumomo-0.10.4 data/sumomo/sources/spot-watcher.sh
sumomo-0.10.3 data/sumomo/sources/spot-watcher.sh
sumomo-0.10.2 data/sumomo/sources/spot-watcher.sh
sumomo-0.10.1 data/sumomo/sources/spot-watcher.sh
sumomo-0.10.0 data/sumomo/sources/spot-watcher.sh
sumomo-0.9.0 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.22 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.21 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.20 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.17 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.16 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.15 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.14 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.13 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.12 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.11 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.10 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.9 data/sumomo/sources/spot-watcher.sh
sumomo-0.8.8 data/sumomo/sources/spot-watcher.sh