Sha256: 17550c74a20162f4a08459bf01e708aef99d92b74adbc86acdd30c5f63dee0a5

Contents?: true

Size: 1.2 KB

Versions: 33

Compression:

Stored size: 1.2 KB

Contents

#!/bin/bash
#
# Copyright (c) 2009-2012 Lindsay Holmwood <lindsay@holmwood.id.au>
#
# flapjack
# Boots flapjack (coordinator, flapjack-executive, notification workers, ...)
#

PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local:/usr/local/sbin:/usr/local/bin:/usr/lib/flapjack/bin

# load global rbenv environment if present
if [ -x /etc/profile.d/rbenv.sh ] ; then
  source /etc/profile.d/rbenv.sh
fi

# Default return value
RETVAL=0

export FLAPJACK_ENV="production"

if [ ! $(which flapjack) ]; then
  echo "Error: flapjack isn't in PATH."
  echo "Refusing to do anything!"
  exit 1
fi

rbenv shell 1.9.3-p125

# Evaluate command
case "$1" in
  start)
    flapjack start --config /etc/flapjack/flapjack-config.yaml --daemonize
    RETVAL=$?
  ;;
  stop)
    flapjack stop --config /etc/flapjack/flapjack-config.yaml
    RETVAL=$?
  ;;
  restart)
    flapjack restart --config /etc/flapjack/flapjack-config.yaml
    RETVAL=$?
  ;;
  reload)
    flapjack reload --config /etc/flapjack/flapjack-config.yaml
    RETVAL=$?
  ;;
  status)
    flapjack status --config /etc/flapjack/flapjack-config.yaml
    RETVAL=$?
  ;;
  *)
    echo "Usage: flapjack {start|stop|restart|reload|status}"
    RETVAL=1
  ;;
esac

exit $RETVAL

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
flapjack-0.7.7 dist/etc/init.d/flapjack
flapjack-0.7.6 dist/etc/init.d/flapjack
flapjack-0.7.5 dist/etc/init.d/flapjack
flapjack-0.7.4 dist/etc/init.d/flapjack
flapjack-0.7.3 dist/etc/init.d/flapjack
flapjack-0.7.2 dist/etc/init.d/flapjack
flapjack-0.7.1 dist/etc/init.d/flapjack
flapjack-0.7.0 dist/etc/init.d/flapjack
flapjack-0.6.61 dist/etc/init.d/flapjack
flapjack-0.6.60 dist/etc/init.d/flapjack
flapjack-0.6.59 dist/etc/init.d/flapjack
flapjack-0.6.58 dist/etc/init.d/flapjack
flapjack-0.6.57 dist/etc/init.d/flapjack