[Win32utils-devel] Problem with starting service with win32-service
sean.karlage at uky.edu
Thu Aug 8 16:44:27 UTC 2013
I implemented this change, but when I try to stop the service by giving the
stop command, it still hangs. I'm not sure why, in this case, because the
sleep command is only running for 1 second and thus shouldn't be blocking.
On Tue, Aug 6, 2013 at 9:26 PM, Heesob Park <phasis at gmail.com> wrote:
> 2013/8/7 Sean Karlage <sean.karlage at uky.edu>:
> > The service is not in an abnormal state though. Following Daniel's
> > from his github, after all main processing is done, I call sleep for some
> > amount of time. While that sleep is in effect, the process cannot be
> > stopped.
> sleep options[:pause_time]
> can be modified as
> options[:pause_time].times do
> sleep 1
> break if state != RUNNING
> Park Heesob
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the win32utils-devel