Tag: unicorn

  • 笔记: Unicorn & LSB init.d

    总算找到一个好用的脚本, 能将多个 unicorn 实例集成到 Linux 的系统服务中, 这样就不必担心重新启动后 unicorn 是否运行了. /etc/init.d/unicorn: #!/bin/sh # # init.d script for single or multiple unicorn installations. Expects at least one .conf # file in /etc/unicorn # # Modified by [email protected] http://github.com/jaygooby # based on http://gist.github.com/308216 by http://github.com/mguterl # ## A sample /etc/unicorn/my_app.conf ## ## RAILS_ENV=production ## RAILS_ROOT=/var/apps/www/my_app/current # # This […]