search for: binary_path_name

Displaying 10 results from an estimated 10 matches for "binary_path_name".

2005 Dec 01
1
service_cli.rb
...ice_cli" (for lack of a better name). Its simple, but it allows me to do away with a Riki-specific control script. So I can just do: riki.rb: ---- $LOAD_PATH.unshift File.dirname(__FILE__) require ''service_cli'' class RikiDaemon < Win32::Daemon def self.setup(s) s.binary_path_name = "ruby #{__FILE__} --service" end ...service_main/service_stop... end service_cli(''Riki'', RikiDaemon) ---- So now the "control" and "daemon" functions are both handled from the same generic script (I added an odd but effective command line par...
2007 Sep 19
1
Fwd: win32-service of win32utils
...$LOAD_PATH.unshift Dir.pwd end require "win32/service" include Win32 s = Service.new("machine_name") # Create a new service if Service.exists?("foo") Service.delete("foo") end s.create_service{ |s| s.service_name = "foo" s.binary_path_name = "C:\Autonomy\DocumentumFetchOld\DocumentumFetchOld.exe" s.display_name = "My Foo Service" } # Configure a service that already exists s.configure_service{ |s| s.start_name = "start_name" s.password = "password" } s.close Service.start(&quot...
2008 Jul 07
0
[ win32utils-Support Requests-11344 ] Can''t user win32-service inside of a Rails application
...rst => => #<struct Struct::Win32Service service_name="Abiosdsk", display_name="Abiosdsk", service_type="kernel driver", current _state="stopped", controls_accepted=nil, win32_exit_code=1077, service_specific_exit_code=0, check_point=0, wait_hint=0, binary_path_name=nil, start_type="disabled", error_control="ignore", load_order_group="Primary disk", tag_id=3, start_n ame=nil, dependencies=nil, description=nil, :interactive?=false, pid=0, service_flags=0> If I do the same inside a Rails controller like this it dies: gem "...
2007 Jun 04
0
[ win32utils-Support Requests-11344 ] Can''t user win32-service inside of a Rails application
...rst => => #<struct Struct::Win32Service service_name="Abiosdsk", display_name="Abiosdsk", service_type="kernel driver", current _state="stopped", controls_accepted=nil, win32_exit_code=1077, service_specific_exit_code=0, check_point=0, wait_hint=0, binary_path_name=nil, start_type="disabled", error_control="ignore", load_order_group="Primary disk", tag_id=3, start_n ame=nil, dependencies=nil, description=nil, :interactive?=false, pid=0, service_flags=0> If I do the same inside a Rails controller like this it dies: gem "...
2006 Jun 18
0
[ win32utils-Bugs-4699 ] Service dependencies are not being created properly
...Sample code: require ''win32/service'' Win32::Service::VERSION # => 0.5.0 svc = Win32::Service.new() svc.create_service{ |s| s.service_name = "MyApache" s.display_name = "MyApacheSvc" s.service_description = "My Apache Svc Description" s.binary_path_name = "C:\Apache\2.0.52\bin\Apache.exe -k runservice" s.start_type = Win32::Service::AUTO_START s.dependencies = ["Tcpip", "Afd"] # both are valid } svc.close # REG_MULTI_SZ value created for DependOnService at # HKLM\SYSTEM\CurrentControlSet\Services\MyApache: # Tcpi...
2004 Feb 10
0
Daemon help
...ude Win32 SERVICE_NAME = "FooSvc" SERVICE_DISPLAYNAME = "Foo Service" PROGRAM = "c:\\daemon.rb" if ARGV[0]=="install" svc = Service.new svc.create_service{ |s| s.service_name = SERVICE_NAME s.display_name = SERVICE_DISPLAYNAME s.binary_path_name = ''ruby '' + PROGRAM s.dependencies = [] #s.start_type = Service::AUTO_START } svc.close puts "installed" elsif ARGV[0]=="start" Service.start(SERVICE_NAME) started = false while started == false s = Service.status(SERV...
2007 Sep 21
0
win32-service of win32utils
...uot;foo") > > > > > > Service.delete("foo") > > > > > > end > > > > > > > > > > > > s.create_service{ |s| > > > > > > s.service_name = "foo" > > > > > > s.binary_path_name = > "C:\Autonomy\DocumentumFetchOld\DocumentumFetchOld.exe" > > > > > > s.display_name = "My Foo Service" > > > > > > } > > > > > > > > > > > > > > > > > > # Configure a servi...
2008 Jun 04
12
Mongrel as Windows service with normal privileges
I am trying to run Mongrel 1.1.5 with mongrel_service 0.3.4 on Ruby 1.8.6 with a "normal" user account, i.e. a user which belongs only to the Windows group "Users". The rationale behind this is that running a web server with full administrative rights (e.g. Local System) is not something that I would like to do. Unfortunately, starting the service from the services control
2004 Apr 09
2
Issues with win32-service Daemon
...if n > 0 puts "Retrying..." sleep 2 n -= 1 retry else STDERR.puts "Unable to delete. Exiting..." exit end end puts "Deleted service" end svc = Service.new svc.create_service{ |s| s.service_name = Name s.display_name = DisplayName s.binary_path_name = ''c:\ruby\bin\ruby '' + file s.dependencies = [] } svc.close puts "Service installed. Attempting to start service" sleep 2 Service.start(Name) sleep 1 puts "Service started..." _________________________________________________________________ Tax headac...
2005 May 14
4
Problems with custom service and webrick
...iting..." exit! end service_name = ''WebrickSvc'' display_name = ''Webrick'' # Install the service if OPTIONS[:install] svc = Service.new svc.create_service{ |s| s.service_name = service_name s.display_name = display_name s.binary_path_name = ''c:\ruby\bin\ruby c:\progra~1\rubyservices\webrick\webrick_daemon.rb'' } svc.close puts "#{display_name} service installed" end # Start the service if OPTIONS[:start] started = false if Service.status(service_name).current_state == "running"...