Created
May 13, 2015 08:31
-
-
Save kaworu/a0f158e85f51f6705574 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/sh | |
| datadir="/home/huongviet.ch/ror" | |
| daemon="/usr/local/bin/unicorn_rails18" | |
| daemon_flags="--host :: --port 8000 --env production --debug --daemonize" | |
| daemon_user="huongviet.ch" | |
| . /etc/rc.d/rc.subr | |
| pexp="ruby18: unicorn_rails18 master.*" | |
| rc_start() { | |
| ${rcexec} "cd ${datadir} && env LD_PRELOAD=libpthread.so ${daemon} ${daemon_flags}" | |
| } | |
| rc_cmd $1 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After applying the following patch:
I have: