Displaying 20 results from an estimated 10000 matches similar to: "Curious pause/resume behavior"
2004 Feb 06
1
Service pause and resume
I committed a new version of service.c and daemon_test.rb.
Now you can pause and resume a Ruby service module.
Regards,
Park Heesob
--MIME Multi-part separator--
2005 Sep 08
11
Stopping services
I''m back to getting stuff to run as a Windows service, and am running
in to a problem. My service (a Daemon ruby class) installs and starts
fine, but when I try to stop it, I get:
C:\workspaces\default\tahoe>ruby script\service stop
script/service:77:in `stop'': An exception occurred in the service
when handling
the control request. (Win32::ServiceError)
from
2005 Feb 28
3
test/unit error report for win32-service
Dan,
I am assuming that the version in CVS is the most current one.
Report follows.
-- shanko
------------------------------------------------------
C:\win32utils\win32-service\test>ruby tc_service.rb
This test will stop and start your Clipboard service, as well as
pause and
resume your Schedule service. This is harmless unless you are actually
using these services at the moment you
2004 Apr 09
2
Issues with win32-service Daemon
Hi all,
I wrote a little echo client to run as a service. I have a couple of
problems with this. First, any time I try to define anything in
"initialize", the service fails to start. Any idea why?
Also, this service runs for a while, then just quits for no reason that I
can see. The Event Log merely says, "The Abba service terminated
unexpectedly".
Any ideas on
2004 Feb 02
4
Hooks for win32-service
Just trying to come up with hooks for win32-service. It looks like
Perl''s Win32::Daemon defines these:
start....................The service is starting.
pause....................The service is entering a paused state.
continue.................The service is resuming from a paused state.
stop.....................The service is stopping
running..................The service is running
2006 Jun 19
2
win32-service cvs - potential issue with Service.services
Hi all,
I''m preparing win32-service for an 0.5.1 release. I''ve made a couple
minor changes and altered the test suite a bit. It passes on my box
here, except that about half the time I get this error:
1) Error:
test_services(TC_Win32Service):
Win32::ServiceError: OpenService() call failed: The handle is invalid.
test/tc_service.rb:227:in `services''
2004 Mar 07
1
win32-mmap problem
Hi all,
Ruby 1.8.1 (hand built, not the installer)
Windows 2000
I was just playing with win32-mmap. I tried running the test_server.rb and
test_client.rb. I started the server, which seems to be fine, but when I
run the client I get this:
C:\eclipse\workspace\win32-mmap-0.1.0\test>ruby test_client.rb
C:/ruby/lib/ruby/1.8/ftools.rb:23:in `initialize'': Permission denied -
2004 Nov 04
4
Attempt to build a gemspec
Hi all,
I''m trying to build a gemspec for win32-ipc, using a precompiled binary.
Here''s my gemspec file:
#win32-ipc.gemspec
require "rubygems"
spec = Gem::Specification.new do |s|
s.name = "win32-ipc"
s.version = "0.3.1"
s.platform = Gem::Platform::WIN32
s.summary = "A base class for Win32 synchronization
objects."
2004 Jan 22
1
Latest win32-service error
I''m getting an error when I run the test2.rb script. I get this error:
C:\eclipse\workspace\win32-service-0.3.0\test>ruby test2.rb install
installed
C:\eclipse\workspace\win32-service-0.3.0\test>ruby test2.rb start
(Win32ServiceError)t'': Overlapped I/O operation is in progress.
from test2.rb:42
Any ideas?
Also, it looks like the output from ErrorDescription()
2004 Mar 11
5
win32-etc-0.2.2 testing wanted
I''ve commited code for win32-etc 0.2.2, which adds the configure_user and
configure_group methods. Testing appreciated. On my home system, I can''t
get configure_user to work, but I haven''t any real idea why it fails. The
configure_group method seems to work fine, however.
Dan
_________________________________________________________________
Fast. Reliable. Get
2007 Dec 04
4
eventlog
Hi,
Hm, the string inserts are different, too. Any encoding issues? Your
user name uses extended ASCII, too, right? Not sure if that''s
significant or not.
I''ve cc''d the win32utils-devel list to see if anyone has any ideas.
Thanks,
Dan
botp wrote:
> On 12/4/07, Daniel Berger <djberg96 at gmail.com> wrote:
>> Can you tell us which record numbers in
2006 May 22
9
win32/service... still with problems.
Hello list,
In my quest to get Mongrel working as service for win32, found some
problems with win32/service that make it impossible to solve.
Attached is the simplest service script I could do with ruby, which
depends on win32/service.
I found that doing anything complex in service_stop (killing threads,
doing file handling, even sleeping for 0.25 seconds). crash the
service with backtraces (of
2004 Feb 10
0
TCPServer failure within daemon
I wanted to see if I could setup a simple echo server to run as a
service. So, using daemon_test.rb, I modified the Daemon class to
something like this:
require "socket"
class Daemon
def initialize
@server = TCPServer.new("localhost",8888)
end
def service_main
while state == RUNNING
while session = @server.accept
str =
2006 Dec 21
0
Curious win32-changenotify behavior - numbers instead of names
Hi all,
Ruby 1.8.5
win32-ipc 0.4.2 (or 0.5.0 in cvs)
win32-changenotify 0.4.2
I noticed something strange tonight while tinkering with
win32-changenotify. Here''s my sample script:
# cntest.rb
require ''win32/changenotify''
include Win32
path = "C:\\test"
filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME
cn = ChangeNotify.new(path, true, filter)
2007 Sep 19
1
Fwd: win32-service of win32utils
Any ideas folks?
Thanks,
Dan
---------- Forwarded message ----------
From: Kay <serphakay at hotmail.com>
Date: Sep 19, 2007 10:52 AM
Subject: win32-service of win32utils
To: djberg96 at gmail.com
I''m writing some scripts to programmatically change the user account
of running a windows service. So I downloaded one of the windows
utilities, win32-service, and wrote my scripts.
2014 Aug 06
2
Re: [libvirt] libvirt external disk-only snapshot will pause the VM?
Thanks very much Eric! This is exactly what I guessed, I just wondering
where I could find this piece of code and control the the pause time of
guest, while the snapshot being taken? thanks !
Best,
Yuanzhen
On Tue, Aug 5, 2014 at 6:30 PM, Eric Blake <eblake@redhat.com> wrote:
> On 08/05/2014 03:54 PM, Yuanzhen Gu wrote:
> > Hello folks,
> >
> > If I give command to
2008 May 07
2
prototype PeriodicalExecuter pause/restart patch
I''ve come up with a patch to PeriodicalExecuter which allows for
pausing and restarting without losing the time remaining. I''ve
searched for something like this, but the only one I found linked to a
dead blog. I wondered if anyone would look over the code, maybe it
will make its way into the official release.
var PeriodicalExecuter = Class.create({
initialize:
2000 Jan 13
0
SAMBA digest 2375 / Can't remove pause on printing
Hillel Bilman wrote:
>I have a problem that if a user sends a file to be printed and checks
>remotely and finds the printing of that file has been paused, that
>user can't remove the pause as the system says he/she doesn't have
>permission to do it.
>
>My smb.conf contains :
>[global]
> load printers = yes
> printcap name = /etc/printcap
> printing =
2014 Aug 05
0
Re: [libvirt] libvirt external disk-only snapshot will pause the VM?
On 08/05/2014 03:54 PM, Yuanzhen Gu wrote:
> Hello folks,
>
> If I give command to take external disk-only live snapshot, such as
> # virsh snapshot-create-as vm1 snapshot_vm1 --disk-only
>
> will the guest OS be paused or suspend while the snapshot being taken?
The guest will temporarily pause, but the time that it remains paused
will be a fraction of a second. In practice,
2014 Aug 06
0
Re: [libvirt] libvirt external disk-only snapshot will pause the VM?
On 08/06/2014 10:06 AM, Yuanzhen Gu wrote:
> yes, I got your point, thanks very much Eric.
not entirely, because you still top-posted.
>
> If I want to take a distributed snapshot, which need pause all the VMs and
> then take snapshot, how can I control the pause for all the VMs?
You mean, you have multiple VMs, and want to take a snapshot of all
their storage at the same point in