Skip to content

Instantly share code, notes, and snippets.

@jbr
jbr / dj_monit_runner.sh
Created July 7, 2009 06:13
Delayed::Job runner for monit
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
APP_NAME=your_app_name_here #<--fill this in
APP_DIR=/var/www/apps/
RAILS_ROOT=$APP_DIR/current
if [ "$3" ]; then
RUNNER="$3"
else
RUNNER=1