Skip to content

Instantly share code, notes, and snippets.

@babie
Last active December 27, 2015 08:39
Show Gist options
  • Save babie/7297796 to your computer and use it in GitHub Desktop.
Save babie/7297796 to your computer and use it in GitHub Desktop.
description "earthquake server"
author "babie wildheart <babie@example.com>"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 5
setuid babie
setgid babie
umask 022
console none
script
export HOME=/home/babie
export LANG=ja_JP.UTF-8
export COLUMNS=400
export PATH=/home/babie/.rbenv/shims:/home/babie/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
exec /home/babie/pty-keeper --no-daemon --cpidfile=/tmp/earthquake.pid /home/babie/.rbenv/shims/earthquake
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment