Problem with win32 service for mongrel (vista)

Hi,
I tried to install the win32 service for mongrel with the following
commands:

gem install win32-service (win32-service 0.5.2 mswin32)
gem install mongrel_service (mongrel_service 0.3.2 (mswin32)

mongrel_rails service::install -N appname -c c:\appdir -p 3000 - e development

The service is installed.
I can see the service in the service console in windows (windows
vista).
When I try to start the service from the service console or I get the
following message:

The appname service on Local Computer started and then stopped. Some
services stop automatically if they are not in use by other services
or programs.

When I use net start to start the service the response I get is:
The appname service is starting.
The appname service could not be started.

The service did not report an error.

Any ideas?

Hi Stefan

The appname service on Local Computer started and then stopped. Some
services stop automatically if they are not in use by other services
or programs.

cch: I had come accross this message before when I first started to
use mongrel_service.
Check your path and make sure your appdir is a valid rails apps.

I have its running just fine.
So it does work.

99% of the time it’s because your app is misconfigured or that port is
in
use.

Start up your app like this from the website root:

mongrel_rails start -e production -p 4003

Then hit up http://localhost:4003

Test your app.

Then install the service

mongrel_rails service::install -n my_app_on_4003 -e production -p 4003

Then see if it starts

mongrel_rails service::start -n my_app_on_4003

Let us know what you find.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs