From: Matthieu Stone Date: 2007-04-13T17:55:28+09:00 Subject: Re: Why my ruby services shuts down when logoff from windows Hi Miika, It's been awhile since I played with windows. But I think if your services are started with the permissions of a user then they will exist with the user. So when you log off, they no longer have any permissions to run & so die. You could try changing the services run as the Local System Account, you can do this via Control Panel->Administration Tools->Services - right click on the service, depending on your version of windows you will see Log On as somewhere, & change this to Local System Account - you may need the administrator password for this. There should also be an option somewhere, when you create the service, to determine in what user the service should run as. rgds, - matt. -----Original Message----- From: list-bounce@example.com [mailto:list-bounce@example.com] On Behalf Of Miika Parvio Sent: 13 April 2007 08:53 To: ruby-talk ML Subject: Why my ruby services shuts down when logoff from windows 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/.