try "installing" the service with complete requirements like

perl dirmon.pl -install -d <dir to monitor> -l <file path where to log>

Michael


[EMAIL PROTECTED] wrote:

> My apologies if this ends up posted multiple times, but I
> suspect the first attempt failed...
>
> I’ve been having a battle getting a simple perl script to
> start as a Win32 service (using Win32::Daemon) on XP. In
> frustration I’ve reverted to the DIRMON script from David
> Roth’s website, which is touted as the example, and I’m
> having exactly the same problems with that. Methinks the
> problem is with me, and a lack of something in the Win32
> knowledge department (my background is primarily VMS &
> Unix) – hopefully someone can point me in the right
> direction.
>
> I have no problems installing the DIRMON script via a
> simple
>
>    perl DIRMON.pl –install
>
> I’ve done this without any account or other parameters,
> but from looking at the installed service, it seems to add
> sensible defaults. If I now try and start this through the
> SCM, it immediately returns with
>
> Could not start the directory monitoring service on the
> local computer
> Error 1053: The service did not respond to the start or
> control request in a timely fashion
>
> Thinking that this could be a privilege issue with running
> outside an account context, I’ve tried to start this with
> an account and password
>
>    perl DIRMON.pl –install –user xxx –pass xxx
>
> I actually set up an account called xxx with the same
> password, so this is literally what was entered. This
> returns with;
>
> Failed to add the Directory Monitoring Service.
> Error: The account name is invalid or does not exist, or
> the password is invalid for the account name specified
>
> I’ve then tried installing this as a system service, then
> manually adding the account and password to the logon
> details in the services console, and starting this again.
> This still returns with the 1053 error above.
>
> I have found the SCM events logged for the startup
> failures, and these are all of the form
>
> Timeout (30000 milliseconds) waiting for the Directory
> Monitoring Service service to connect.
>
> This implies that the SCM waited for 30 seconds for
> something to happen, but in all cases I have seen the
> failure was reported immediately the start request was
> made
>
> What am I missing??? How do you debug problems at the
> service level?
>
> Thanks for any help or pointers
>
> Andrew
> _______________________________________________
> Perl-Win32-Users mailing list
> Perl-Win32-Users@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

--
+-- Michael Meltzer -------------+-----------------------------------------+
|   AED-SICAD Aktiengesellschaft |   EMail : [EMAIL PROTECTED]  |
|   Lilienthal-Str. 7            |   Phone : +49-89-45026-108              |
|   85579 Neubiberg              |   Fax   : +49-89-45026-113              |
+--------------------------------+-----------------------------------------+




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

Reply via email to