Sha256: fc5cad8984443bb621fd2806d0029bc28976cf5258a94a6e63872b76be4e345f
Contents?: true
Size: 558 Bytes
Versions: 7
Compression:
Stored size: 558 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, process dead?" ;; *) echo >&2 "Usage: $0 <start|stop|reload>" exit 1 ;; esac
Version data entries
7 entries across 7 versions & 1 rubygems