Skip to content

Instantly share code, notes, and snippets.

View qixtand's full-sized avatar

Jesse Washburn qixtand

  • Spotnana
  • Traverse City, MI
View GitHub Profile
@qixtand
qixtand / gist:7364575
Created November 8, 2013 00:59
A wrapper script to invoke the newrelic_resque_agent and capture it's PID for monit monitoring. Adapted from example 7.3.2 from http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_03.html.
#!/bin/bash
LOGFILE=/var/log/newrelic/newrelic-resque-agent.log
PIDFILE=/var/run/newrelic-resque-agent.pid
CONFIGFILE=/etc/newrelic/newrelic_resque_agent.yml
case $1 in
start)
exec 2>&1 /usr/bin/newrelic_resque_agent --config $CONFIGFILE run 1> $LOGFILE &
echo $! > $PIDFILE
@qixtand
qixtand / keybase.md
Created December 16, 2015 23:59
Keybase proof

Keybase proof

I hereby claim:

  • I am qixtand on github.
  • I am qixtand (https://keybase.io/qixtand) on keybase.
  • I have a public key whose fingerprint is B76B 9C44 D02B C67D 48DE 331F 6DBC D37E 2A93 3C9F

To claim this, I am signing this object: