H
harvar007
Hi
I am trying to create a win32 service using the module win32:deamon. I
wrote a simple code and tried to get that running before I went to the
actual one. I am actually able to successfully create the service and
see the same in the Management Console, but when I try to right click
and say Start I get "error :1053 the service did not respond or start
to the control request in a timely fashion"
Can any one please, let me know what might be wrong in this scenario?
Here is my sample code which I was trying to get installed!
use Win32:aemon;
Win32:aemon::StartService();
while( SERVICE_START_PENDING != Win32:aemon::State() )
{
sleep( 1 );
}
Win32:aemon::State( SERVICE_RUNNING );
unlink( glob( "c:\\temp\\*.tmp" ) );
Win32:aemon::StopService();
Thanks
Harini
I am trying to create a win32 service using the module win32:deamon. I
wrote a simple code and tried to get that running before I went to the
actual one. I am actually able to successfully create the service and
see the same in the Management Console, but when I try to right click
and say Start I get "error :1053 the service did not respond or start
to the control request in a timely fashion"
Can any one please, let me know what might be wrong in this scenario?
Here is my sample code which I was trying to get installed!
use Win32:aemon;
Win32:aemon::StartService();
while( SERVICE_START_PENDING != Win32:aemon::State() )
{
sleep( 1 );
}
Win32:aemon::State( SERVICE_RUNNING );
unlink( glob( "c:\\temp\\*.tmp" ) );
Win32:aemon::StopService();
Thanks
Harini