Autostart thin on BSD system

156 views
Skip to first unread message

Pavel Pochepcov

unread,
May 11, 2012, 5:46:31 AM5/11/12
to thin-ruby
Hi all.
I understood that "thin install" is linux command for create startup
script in /etc/init.d
But how to load thin at system startup in BSD system, for example I
use openbsd5.0,
where after reboot I must do "thin -c /var/www/redmine -C /var/www/
redmine/config/thin.conf start"
in shell to load rail's app?

dj

unread,
May 13, 2012, 8:35:36 AM5/13/12
to thin-ruby
For lack of a better response I recommend finding a good, general BSD
tutorial for that and then just adapting it for Thin.

That's what I had to do with OS X (and still wasn't able to use
launchctl to unload it, because it's daemonized).

Pavel Pochepcov

unread,
May 16, 2012, 5:39:22 AM5/16/12
to thin-ruby
it is work for me:

#!/bin/sh
export RUBYOPT=rubygems
/usr/local/bin/thin -c /var/www/redmine -C /var/www/redmine/config/
thin.conf start

and start script from rc.local

Shadowbq

unread,
Jun 5, 2015, 1:12:51 PM6/5/15
to thin...@googlegroups.com
Here is decent FreeBSD Thin rc.d script

https://github.com/packets-at-rest/thin-rc.d

Feel free to use this .. 
Reply all
Reply to author
Forward
0 new messages