Displaying 11 results from an estimated 11 matches for "create_service".
Did you mean:
create_device
2005 Feb 28
1
Bug in win32-service
I found a small (easily worked around) bug in service.c. The accessor
for the start user is called "start_name", but create_service tries to
access "@service_start_name". A simple
"service.instance_eval{@service_start_name = ''name''} works around it,
but I thought ya''ll might want to fix it.
BTW, thanks for win32-utils... I don''t like using Windows, but when I
do need to, it...
2005 Nov 22
1
Win32 Service Timeout command
...> Jamey Cribbs
Hi Jamey,
I''ve cc''d the win32utils-devel mailing list for some additional
feedback.
Heesob, is this because of the default 2 second WaitHint value that
StartService() uses?
If so, I think the solution is to allow a "timeout=" option in the
Service.create_service method, and wrap the StartService() function in a
"while dwCurrentState == SERVICE_START_PENDING; sleep(x)" type of loop.
I''m basing my opinion on this link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc
/base/starting_a_service.asp
Does that seem a r...
2005 Feb 28
3
test/unit error report for win32-service
...ing constant
Struct::Win32ServiceStatus
.F
Finished in 7.481 seconds.
1) Failure:
test_create_delete(TC_Win32Service) [tc_service.rb:164]:
Exception raised:
Class: <Win32::ServiceError>
Message: <"The specified service already exists.">
---Backtrace---
tc_service.rb:165:in `create_service''
tc_service.rb:165:in `test_create_delete''
tc_service.rb:164:in `assert_nothing_raised''
tc_service.rb:164:in `test_create_delete''
---------------
2) Error:
test_start_stop(TC_Win32Service):
Win32::ServiceError: The dependency service or group failed to start....
2007 Sep 19
1
Fwd: win32-service of win32utils
...File.copy("service.so","win32")
$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...
2006 Jun 18
0
[ win32utils-Bugs-4699 ] Service dependencies are not being created properly
...reated but fails to start with a dependent service error
# when valid dependent services are being specified using
# s.dependencies = ["Tcpip", "Afd"]
# 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 =...
2004 Feb 10
0
Daemon help
...loop
# END daemon.rb
# daemonctrl.rb in ''C:\somedir''
require "win32/service"
include 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&q...
2007 Sep 21
0
win32-service of win32utils
...> > # 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"
> > >
> > &...
2004 Jan 26
1
Re: win32-service ideas
>From: Shashank Date <sdate@everestkc.net>
>To: Daniel Berger <djberg96@hotmail.com>, phasis@nownuri.net
>CC: win32utils-devel@rubyforge.org
>Subject: Re: win32-service ideas
>Date: Sun, 25 Jan 2004 10:49:03 -0600
>
>Dan, Park,
>
> > Still nothing. The svc.log file never gets created. It''s definitely
> > choking on the StartService() call.
2013 Aug 28
3
Creating Windows services
Hello,
Documentation mentions that Windows service resource provider "can start,
stop, enable, and disable services".
Is it possible to create (register) a service using this provider?
I''m running stand-alone Puppet agent 3.4.2 on Windows.
Thanks,
Igor.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To
2004 Apr 09
2
Issues with win32-service Daemon
...)
rescue Win32::ServiceError => e
puts "Unable to delete: #{e}"
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...&q...
2005 May 14
4
Problems with custom service and webrick
...9;'\webrick_daemon.rb'')
STDERR.puts "Error: webrick_daemon.rb not found in
#{home}. Exiting..."
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...