I installed Pod::Webserver & executing podwebserver from CLI works OK;
except that it requires keeping open a Command Prompt window.

So, I thought that I could use Win32::Daemon to create and run it as a
service ;>

The service installs successfully.

However, it will NOT run !?!?

use Win32::Daemon;

my $name = "podWebServer";
my %Hash = (
    display => $name,
    name => $name,
    parameters => 'C:\Perl\bin\podwebserver',
    path => 'c:\perl\bin\perl.exe',
    pwd => "",
    user => "",
);
if( Win32::Daemon::CreateService( \%Hash ) ) {
    print "Successfully ADDED.\n";
} else {
    warn "Failed to ADD service: "
        . Win32::FormatMessage( Win32::Daemon::GetLastError() )
        . "\n";
}


What do you think?

-- 
Best Regards,

mds
mds resource
877.596.8237
-
Dare to fix things before they break . . .
-
Our capacity for understanding is inversely proportional to how much
we think we know.  The more I know, the more I know I don't know . . .
--

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to