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

Heesob Park phasis at gmail.com
Wed Aug 7 04:26:20 UTC 2013


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

Park Heesob

More information about the win32utils-devel mailing list