Hello all, I try to launch my perl application as a windows service. I compile it with PAR so I have mysoft.exe Then i installed win32::daemon, no problem. I try this script so:
use Win32::Daemon; %Hash = ( machine => '', name => 'PerlTest', display => 'Oh my GOD, Perl is a service!', path => 'c:\\mysoft.exe', user => '', pwd => '', description => 'First prog as service', parameters =>'', ); if( Win32::Daemon::CreateService( \%Hash ) ) { print "Successfully added.\n"; } else { print "Failed to add service: " . Win32::FormatMessage( Win32::Daemon::GetLastError() ) . "\n"; } The service is installed ok but I have an error when I try to start the service! http://www.eventid.net/display.asp?eventid=7009&eventno=655&source=Service%20Control%20Manager&phase=1 Its a timeout error and I don'kow how to solve my problem... If someone can help me Thanks