WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> How to... >> How to prioritise WatchDirectory services at boot
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1299861025

Message started by Unclebaby on Mar 11th, 2011 at 5:30pm

Title: How to prioritise WatchDirectory services at boot
Post by Unclebaby on Mar 11th, 2011 at 5:30pm
I have a server with about 80 tasks monitoring folders and sending emails. Each of these is a Windows service.

When I reboot the server for whatever reason each of these services takes about 10-15 seconds to start but they all come on before the network services.

This makes for something like 25 minutes to reboot and reconnect when I'm working remotely on it. I just had a series of hardware replacements followed by driver updates that required several reboots. The process took several hours when it should have been minutes.

Is there a way to deprioritize the WatchDirectory services or make them wait until after X minutes of uptime?

Or any more inventive way to get around this lag?

Title: Re: How to prioritise WatchDirectory services at b
Post by Dirk on Mar 11th, 2011 at 6:02pm
Hi,

first of all you should try to lower the number of WatchDirectory services you are using, see here:
http://blog-en.gdpsoftware.com/2009/05/how-many-tasks-does-watchdirectory.html
You will run into windows (not WatchDirectory-) problems if you continue with that number of services.

Try to set all services to "manual" and start them from inside a script with "net start" command like it is described here:
http://blog-en.gdpsoftware.com/2008/09/automatically-start-watchdirectory.html

You can start that script manually or with windows task planer, e.g. after startup with a pause of 10 sec between each service.
If you run WatchDirectory under Windows Server 2008 or Windows 7 you can set all services to "delay start" in windows service panel. The actual WatchDirectory version will do so automatically when you recreate the services.

Title: Re: How to prioritise WatchDirectory services at b
Post by Gert on Mar 11th, 2011 at 6:20pm

Dirk wrote on Mar 11th, 2011 at 6:02pm:
If you run WatchDirectory under Windows Server 2008 or Windows 7 you can set all services to "delay start" in windows service panel. The actual WatchDirectory version will do so automatically when you recreate the services.


Thanks Dirk,

Just to explain a bit more:
Make sure to upgrade to the current released version of WD (4.6.5 - it is free for the WD4.x series), install "on top" to keep your settings and tasks.
Now the issue is, the registry entries for the service has been created by an older WD version, a version that didn't set the option to "delay load". Just upgrading to 4.6.5 will not set that option.
You will need to (after installing the latest release):
* set "how to run" back to "run manually" - this removes the Windows Service
* set it back to "run as a service" to recreate the Windows Service entry

If you previously set the Windows Service to run as a different user ( http://blog-en.gdpsoftware.com/2010/04/watchdirectory-tasks-as-windows-service.html ), remember to set that user/pwd again.

Gert

Title: Re: How to prioritise WatchDirectory services at b
Post by Unclebaby on Mar 30th, 2011 at 2:01pm
Thank you both for the responses and apologies for not getting back sooner.

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2018. All Rights Reserved.