Sha256: e7452153beb82ddfa7bf56cb60302932fd230b2bf4a9b93659b627c29b26ed4c

Contents?: true

Size: 575 Bytes

Versions: 32

Compression:

Stored size: 575 Bytes

Contents

#!/bin/bash
export HOME=<%= deploy_to %>

PIDFILE=<%= uwsgi_pidfile %>
CONFIG=<%= uwsgi_config %>
LOGFILE=<%= log_path %>/uwsgi.log
CMD="uwsgi -x $CONFIG -d $LOGFILE"

cd <%= current_path %> >/dev/null

sig () {
  test -s "$PIDFILE" && kill -$1 $(<$PIDFILE)
}

case $1 in
start)
  sig 0 && echo >&2 "Already running" && exit 0
  $CMD
  ;;
stop)
  sig QUIT && exit 0
  echo >&2 "Not running"
  ;;
reload)
  sig HUP && echo reloaded OK && exit 0
  echo >&2 "Couldn't reload, starting '$CMD' instead"
  $CMD
  ;;
*)
  echo >&2 "Usage: $0 <start|stop|reload>"
  exit 1
  ;;
esac

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
capper-1.2.4 lib/capper/templates/uwsgi.sh.erb
capper-1.2.3 lib/capper/templates/uwsgi.sh.erb
capper-1.2.2 lib/capper/templates/uwsgi.sh.erb
capper-1.2.1 lib/capper/templates/uwsgi.sh.erb
capper-1.2.0 lib/capper/templates/uwsgi.sh.erb
capper-1.1.0 lib/capper/templates/uwsgi.sh.erb
capper-1.0.1 lib/capper/templates/uwsgi.sh.erb
capper-1.0.0 lib/capper/templates/uwsgi.sh.erb
capper-0.9.23 lib/capper/templates/uwsgi.sh.erb
capper-0.9.22 lib/capper/templates/uwsgi.sh.erb
capper-0.9.21 lib/capper/templates/uwsgi.sh.erb
capper-0.9.20 lib/capper/templates/uwsgi.sh.erb
capper-0.9.19 lib/capper/templates/uwsgi.sh.erb
capper-0.9.18 lib/capper/templates/uwsgi.sh.erb
capper-0.9.17 lib/capper/templates/uwsgi.sh.erb
capper-0.9.16 lib/capper/templates/uwsgi.sh.erb
capper-0.9.15 lib/capper/templates/uwsgi.sh.erb
capper-0.9.14 lib/capper/templates/uwsgi.sh.erb
capper-0.9.13 lib/capper/templates/uwsgi.sh.erb
capper-0.9.12 lib/capper/templates/uwsgi.sh.erb