Skip to content

Commit

Permalink
BSD init support
Browse files Browse the repository at this point in the history
  • Loading branch information
huma- committed Oct 8, 2011
1 parent 7f667f7 commit 55c024c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thin/controllers/service.rb
Expand Up @@ -5,7 +5,7 @@ module Controllers
# System service controller to launch all servers which
# config files are in a directory.
class Service < Controller
INITD_PATH = '/etc/init.d/thin'
INITD_PATH = Dir.exist?('/etc/rc.d') ? '/etc/rc.d/thin' : '/etc/init.d/thin'
DEFAULT_CONFIG_PATH = '/etc/thin'
TEMPLATE = File.dirname(__FILE__) + '/service.sh.erb'

Expand Down

0 comments on commit 55c024c

Please sign in to comment.