Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example 4 from README.md does not start #19

Open
teridon opened this issue Apr 12, 2021 · 0 comments
Open

Example 4 from README.md does not start #19

teridon opened this issue Apr 12, 2021 · 0 comments

Comments

@teridon
Copy link
Contributor

teridon commented Apr 12, 2021

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";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant