[Win32utils-devel] Problem with starting service with win32-service

Sean Karlage 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:

> Hi,
>
> 2013/8/7 Sean Karlage <sean.karlage at uky.edu>:
> > The service is not in an abnormal state though. Following Daniel's
> example
> > 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
> end
>
>
> Regards,
> Park Heesob
> _______________________________________________
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/win32utils-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20130808/e10972ce/attachment-0001.html>


More information about the win32utils-devel mailing list