Sha256: 2ab842529c031b553d54bd353449a992de162795d525ec2294ca755331bc54bb
Contents?: true
Size: 647 Bytes
Versions: 14
Compression:
Stored size: 647 Bytes
Contents
#!/bin/sh # # chkconfig: - 85 15 # description: unicorn . /etc/rc.d/init.d/functions RAILS_USER=<%= ENV['USER'] %> RAILS_ENV=<%= rails_env %> RAILS_ROOT=<%= rails_root %> PID=${RAILS_ROOT}/tmp/pids/unicorn.pid CONFIG=${RAILS_ROOT}/config/unicorn.rb export PATH="${PATH}":/usr/local/bin start() { daemon --user=${RAILS_USER} --pidfile=$PID bundle exec unicorn_rails -c ${CONFIG} -E ${RAILS_ENV} -D } stop() { killproc -p ${PID} -QUIT } cd ${RAILS_ROOT} || exit 1 case $1 in start) start ;; stop) stop ;; restart) stop start ;; *) echo >&2 "Usage: $0 <start|stop|restart>" exit 1 ;; esac
Version data entries
14 entries across 14 versions & 1 rubygems