Hey Eric,
would you be interested in including a FreeBSD rc.d script ? Here is what my
current one looks like:
in /usr/local/etc/rc.d/unicorn
#!/bin/sh
#
# PROVIDE: unicorn
. /etc/rc.subr
name=unicorn
rcvar=`set_rcvar`
command=/usr/local/bin/unicorn_rails
command_args="-c /usr/local/etc/unicorn.rb -E production -D"
load_rc_config ${name}
: ${unicorn_dir:=/usr/local/www/}
procname=ruby18
unicorn_chdir=${unicorn_dir}
required_dirs=${unicorn_dir}
extra_commands=reload
sig_reload=USR2
run_rc_command $1
and in /etc/rc.conf
unicorn_enable="YES"
unicorn_dir="/usr/local/www/myprojectroot"
This loads unicorn at startup, gives the usual start stop and restart commands
and has a reload command which sends USR2 to the master process.
Kind regards, John
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying