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