FreeBSD rc script
normalperson at yhbt.net
Mon Dec 7 04:50:27 EST 2009
John-Paul Bader <hukl at berlin.ccc.de> wrote:
> Hey Eric,
> would you be interested in including a FreeBSD rc.d script ? Here is
> what my current one looks like:
Sure, a few comments below.
> command_args="-c /usr/local/etc/unicorn.rb -E production -D"
> This loads unicorn at startup, gives the usual start stop and restart
> commands and has a reload command which sends USR2 to the master
Since it's using a Unicorn config file with USR2, wouldn't it have to
use QUIT to complete the actual upgrade?
Not too knowledgeable with FreeBSD init scripts on my end here,
but I'm guessing at how it'd work:
extra_commands="reexec graceful reload"
More information about the mongrel-unicorn