* Bill Luebkert <[EMAIL PROTECTED]> [2007:08:30:10:58:09-0700] scribed:
> Michael D Schleif wrote:
> > 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',
> 
> You may need a .exe on the end there.

No, that is the _exact_ file name -- no extension.  It is a Perl script
that DOES run successfully from CLI.


> >     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?
> 
> What's your error indication ?
> 
> Does CreateService also start the service or do you need to do that too ?

It creates the service, which DOES show up in Windows Services panel.

However, it refuses to start, at least from that Services panel, nor
from the CLI (e.g., net start podWebServer) ...


-- 
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
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to