Displaying 2 results from an estimated 2 matches for "abbasvc".
Did you mean:
abbas
2006 May 10
7
Problems starting mongrel running a rails app as a service
Hi there
I have a rails app that I want to run on a Win 2k server running Mongrel.
I''ve downloaded the latest version and the win32-service gem and can run it
with the mongrel_rails start -d command
When I try to start the same app installed as a service I get the following
error:
"There was a problem starting the service:
The service did not respond to the start or control
2004 Apr 09
2
Issues with win32-service Daemon
...uts "GOT: #{rv}" }
socket.puts "Thanks!"
end
File.open("c:\\test.log","a+") { |f| f.puts("service_main left") }
#s.close
end
end
m = MyDaemon.new
m.mainloop
# run_service.rb
require "win32/service"
include Win32
Name = "AbbaSvc"
DisplayName = "Abba"
file = ''c:\eclipse\workspace\ruby_foo\service_stuff\myservice.rb''
bin = "ruby " + file
if Service.exists?(Name)
if Service.status(Name).current_state == "running"
Service.stop(Name)
sleep 3
puts "Stopped servic...