Created
January 4, 2012 03:36
-
-
Save raws/1558362 to your computer and use it in GitHub Desktop.
Hector Upstart config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Hector IRC server" | |
env LC_CTYPE=en_US.UTF-8 | |
env RBENV_VERSION=1.9.3-p0 | |
env HECTOR_ROOT=/home/ross/hector/blolol.hect | |
script | |
/home/ross/.rbenv/bin/rbenv exec hector daemon | |
end script | |
start on runlevel [2345] | |
stop on runlevel [016] | |
respawn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "etc" | |
Process::Sys.setuid(Etc.getpwnam("ross").uid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment