Why my ruby services shuts down when logoff from windows

Discussion in 'Ruby' started by Miika Parvio, Apr 13, 2007.

  1. Miika Parvio

    Miika Parvio Guest

    Hello!

    I have problems with services created on ruby tools. I'm using mongrel
    web server

    I'm creating mongrel weg server service in following way:

    rails_path = File.expand_path(File.dirname(__FILE__) + "/..").gsub("/",
    "\\")
    port = 80
    sh("mongrel_rails.cmd service::install " +
    "-N my_mongler_web_server " +
    "-c \"#{rails_path}\" " +
    "-p #{port} " +
    "-e #{rails_env}"


    Everything goes fine, but when I logout from the windows (Windows XP
    pro), service I created shuts down. How I can prevent this?

    Also my other ruby services shuts down, when I logoff from windows. How
    can I prevent this? I have used win32/Service to create services from my
    ruby applications.

    Miika

    --
    Posted via http://www.ruby-forum.com/.
    Miika Parvio, Apr 13, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. J-T

    Re: Workerprocess shuts down?

    J-T, May 26, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    393
  2. J-T

    Workerprocess shuts down?

    J-T, May 26, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    423
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,849
    Smokey Grindel
    Dec 2, 2006
  4. Cramer
    Replies:
    1
    Views:
    443
  5. Andrzej Nycz

    Can't logoff from IIS with Windows Identity

    Andrzej Nycz, Sep 24, 2004, in forum: ASP .Net Security
    Replies:
    1
    Views:
    165
    Paul Clement
    Sep 27, 2004
Loading...

Share This Page