Open
Description
After installing the example 4 code as a service, the service will not start. The Windows service console just hangs on "attempting to start" the service. Copied the Example 4 code to a file C:\test\test_service.pl, then installed via:
use Win32::Daemon;
%Hash = (
machine => '',
name => 'TestService',
display => 'TestService',
path => $^X,
user => '',
pwd => '',
description => 'Test Win32::Daemon Example 4',
parameters =>'C:\test\test_service.pl',
);
if( Win32::Daemon::CreateService( \%Hash ) )
{
print "Successfully added.\n";
}
else
{
print "Failed to add service: " . Win32::FormatMessage( Win32::Daemon::GetLastError() ) . "\n";
}
Metadata
Metadata
Assignees
Labels
No labels