RE: perlsvc question

2003-04-03 Thread Tobias Hoellrich
At 09:54 AM 4/3/2003 -0500, Eric Logeson wrote:
I did read that many times... 
(http://aspn.activestate.com/ASPN/Perl/Reference/Products/PDK/PerlSvc/What.html)
from what I gather I need to specify:
$Config{UserName} = 'test';
$Config{Password} = 'test';
which I did, but upon compilation I get the following error:
CreateService failed: The account name is invalid or does not exist, or 
the password is invalid for
the account name specified

But the account does exist, and has the right "logon as a service".
What happens when you try to login with this user-account?
  

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: perlsvc question

2003-04-03 Thread Eric Logeson
I did read that many times... 
(http://aspn.activestate.com/ASPN/Perl/Reference/Products/PDK/PerlSvc/What.html)
from what I gather I need to specify:
$Config{UserName} = 'test';
$Config{Password} = 'test';
which I did, but upon compilation I get the following error:
CreateService failed: The account name is invalid or does not exist, or the password 
is invalid for
the account name specified

But the account does exist, and has the right "logon as a service".


-Original Message-
From: Tobias Hoellrich [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 9:39 AM
To: [EMAIL PROTECTED]
Subject: Re: perlsvc question


At 09:18 AM 4/3/2003 -0500, Eric Logeson wrote:

>Hello
>How do I specify an account that the service should log on as?

Open the PDK Help and read under PerlSvc->"What is PerlSvc?". Hint: Search 
for UserName.

Tobias

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: perlsvc question

2003-04-03 Thread Tobias Hoellrich
At 09:18 AM 4/3/2003 -0500, Eric Logeson wrote:

Hello
How do I specify an account that the service should log on as?
Open the PDK Help and read under PerlSvc->"What is PerlSvc?". Hint: Search 
for UserName.

Tobias

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: PerlSvc

2003-03-12 Thread Jan Dubois
On Wed, 12 Mar 2003 13:35:33 -0500, John Deighan <[EMAIL PROTECTED]>
wrote:

>I have a service, that I've created with PerlSvc. Occasionally, it doesn't 
>start up correctly after a reboot, and I suspect that it's because it 
>accesses a database, and the database server may not have started 
>completely when my service is started. Under Windows, one service can be 
>"dependent" on another service, so that services are started in the 
>required order. However, the PerlSvc documentation gives no way for me to 
>specify such dependency relationships, and the Services control panel, 
>though it will display such relationships if they exist, doesn't seem to 
>allow me to specify such a dependency. Does anyone know how to do that?

You can add a *value* named "DependOnService" under

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\YOURSERVICE

It seems to normally be a REG_MULTI_SZ type value, but maybe it works with
a normal REG_SZ value too; you may want to try it.

I've added an enhancement request to the PDK bug database for letting
PerlSvc handle this for you:

http://bugs.activestate.com/PerlDevKit/show_bug.cgi?id=23669

Cheers,
-Jan

PS:  Please send PDK related questions to the PDK mailing list!
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: PerlSvc

2003-03-12 Thread Cameron Dorey
John Deighan wrote:
I have a service, that I've created with PerlSvc. Occasionally, it 
doesn't start up correctly after a reboot, and I suspect that it's 
because it accesses a database, and the database server may not have 
started completely when my service is started. Under Windows, one 
service can be "dependent" on another service, so that services are 
started in the required order. However, the PerlSvc documentation gives 
no way for me to specify such dependency relationships, and the Services 
control panel, though it will display such relationships if they exist, 
doesn't seem to allow me to specify such a dependency. Does anyone know 
how to do that?
Dave Roth's Win32::Daemon module can create services which work with 
dependencies (available at www.roth.net).

Cameron

--
Cameron Dorey
Associate Professor of Chemistry
University of Central Arkansas
Phone: 501-450-5938
[EMAIL PROTECTED]
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: PerlSvc

2003-03-12 Thread Ken Cornetet
How about an alternate method?

Install Autoexnt from the NT resource kit.
Set your service to start manually. 
Create an Autoexnt.bat that waits until the database service is started
before doing a "net start YourServicehere". 


-Original Message-
From: John Deighan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 1:36 PM
To: [EMAIL PROTECTED]
Subject: PerlSvc


I have a service, that I've created with PerlSvc. Occasionally, it
doesn't 
start up correctly after a reboot, and I suspect that it's because it 
accesses a database, and the database server may not have started 
completely when my service is started. Under Windows, one service can be

"dependent" on another service, so that services are started in the 
required order. However, the PerlSvc documentation gives no way for me
to 
specify such dependency relationships, and the Services control panel, 
though it will display such relationships if they exist, doesn't seem to

allow me to specify such a dependency. Does anyone know how to do that?

___
Perl-Win32-Users mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
<>

Re: PerlSVC

2002-09-06 Thread Jan Dubois

On Fri, 6 Sep 2002 16:51:10 -0400, "Ricci, Mark" <[EMAIL PROTECTED]>
wrote:

>Hello All,
>
>   I'm having some trouble getting this script to run as a service, any
>and all help is appreciated:

There seems to be a syntax error here:
>
>#!c:\perl\bin
>use Win32::Process;
>use Win32;
>
>package PerlSvc;
>
>our $Name = 'CDcontrol';
>ofur $DisplayName = 'CDcontrol Service';

That should be 'our' instead.  I haven't checked if there are other
problems with your script.

For help with Perl Dev Kit components, I would suggest that you use the
pdk mailing list.

Cheers,
-Jan

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs