Important files and directories
Noteworthy files and directories in RubyWorks package are:
Ruby interpeter and libraries
/usr/bin/ruby/ – Ruby interpreter/usr/lib/ruby/ – Ruby libraries, including/usr/lib/ruby/1.8/ – Ruby standard library/usr/lib/ruby/gems/1.8/gems/ – installed Ruby gemsIf you are using x86_64 OS, there will be some other 64-bit specific libraries in
/usr/lib64/ruby/Runit
/usr/sbin/runsvdir – services manager, spawned by init./usr/sbin/sv – service controller. Every daemon process in RubyWorks stack has a
parent sv process/var/service/ – runit services configuration directory./var/service/haproxy/ – service configuration for HAProxy./var/service/haproxy/run – starter script for HAProxy./var/service/haproxy/supervise/ – runit process data for HAProxy./var/service/haproxy/supervise/pid – contains HAProxy’s process id. Empty if HAProxy
service is down./var/service/haproxy/supervise/stat – current status of HAProxy service (up or down)./var/service/[some other service] – service configuration for [some other service].Other executables
/usr/bin/monit – monit executable/usr/bin/haproxy – HAProxy executable./usr/bin/mongrel_rails – Mongrel launcherConfiguration
/etc/rails/ – configuration files directory/etc/rails/monit.conf – monit configuration/etc/rails/haproxy.conf – HAProxy configuration/etc/rails/mongrel_[3002-3005].conf – Mongrels configuration files. Number after underscore is a port number./usr/rails/ – location of Rails skeleton application. You can replace it with your own application,
or deploy your own application elsewhere and symlink /usr/rails to the actual location.
Logs
/var/log/monit.log – log of Monit/var/log/haproxy.log – log of HAProxy
(if you configured syslogd as per installation guide)/usr/rails/log/ – logs directory of Mongrels and Rails