in reply to Win32::Daemon service doesn't reach RUNNING state

Correction: Callback Start is printing out debug info. Here is the output:
Running Test Service. opt: myflag path: C:/Users/u601501/test Debug 1 Debug 2 Debug 3 Starting DEBUG Set Context DEBUG Set State SERVICE_RUNNING: 4 SERVICE_CONTROL_TIMER: 4128 State: 1 SERVICE_RUNNING: 4 SERVICE_CONTROL_TIMER: 4128 State: 0 SERVICE_RUNNING: 4 SERVICE_CONTROL_TIMER: 4128 State: 0 SERVICE_RUNNING: 4 SERVICE_CONTROL_TIMER: 4128 State: 0

Replies are listed 'Best First'.
Re^2: Win32::Daemon service doesn't reach RUNNING state
by SwaJime (Scribe) on May 28, 2019 at 19:19 UTC

    I just got a chance to retry on one of the servers, this one also a Windows 2016 server, adding in that line did not help. On that system, no matter what I did, it appeared Callback_Running() was never triggered. I added a callback for "timer" and that did not work either. It was never triggered.