Sha256: ca8836443f1f93bde270b6f24a7b8691d195a19a7da503d3abe60b2e3ea5a7b4
Contents?: true
Size: 889 Bytes
Versions: 8
Compression:
Stored size: 889 Bytes
Contents
#!/bin/bash # # Copyright (c) 2009 Lindsay Holmwood <lindsay@holmwood.id.au> # # flapjack-workers # Boots flapjack-workers, check executors for Flapjack. # PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local:/usr/local/sbin:/usr/local/bin if [ -f /etc/default/flapjack-workers ]; then . /etc/default/flapjack-workers fi # Default return value RETVAL=0 if [ ! $(which flapjack-worker-manager) ]; then echo "flapjack-worker-manager isn't on your path." echo "Refusing to start." exit 1 fi # Evaluate command case "$1" in start) flapjack-worker-manager start --workers $WORKERS RETVAL=$? ;; stop) flapjack-worker-manager stop --workers $WORKERS RETVAL=$? ;; restart) flapjack-worker-manager restart --workers $WORKERS RETVAL=$? ;; *) echo "Usage: flapjack-workers {start|stop|restart}" exit 1 ;; esac exit $RETVAL
Version data entries
8 entries across 8 versions & 1 rubygems