Can I automatically start a daemon in a Rails 2.3.11 application?
In the development environment i use the following command to start a daemon after starting the server:

    RAILS_ENV=development lib/daemons/mailer_ctl start

In the production environment, from the application directory, i would use:

    lib/daemons/mailer_ctl start

Can i change the development.rb and production.rb files so the daemon would automatically be started? If not, is there another way to do this?


Can I automatically start a daemon in a Rails 2.3.11 application?
===

In the development environment i use the following command to start a daemon after starting the server:

    RAILS_ENV=development lib/daemons/mailer_ctl start

In the production environment, from the application directory, i would use:

    lib/daemons/mailer_ctl start

Can i change the development.rb and production.rb files so the daemon would automatically be started? If not, is there another way to do this?

