in reply to Re: Win32::Daemon service doesn't reach RUNNING state
in thread Win32::Daemon service doesn't reach RUNNING state
Thank, I will look into this. Meanwhile, I found more info: Changing Callback_Start as follows allows it to run, however the resume/contine callback function does not work and does not benefit from a similar change:
sub Callback_Start { my($Event, $Context) = @_; print $fh "Starting\n"; print $fh "DEBUG Setting Context\n"; $Context->{last_state} = SERVICE_RUNNING; print $fh "DEBUG Setting State\n"; Win32::Daemon::State( SERVICE_RUNNING ); print $fh "DEBUG Setting State again\n"; Win32::Daemon::State( SERVICE_RUNNING ); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Win32::Daemon service doesn't reach RUNNING state
by SwaJime (Scribe) on May 28, 2019 at 17:36 UTC |
In Section
Seekers of Perl Wisdom