WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
How to prioritise WatchDirectory services at boot (Read 3418 times)
Unclebaby
YaBB Newbies
*
Offline



Posts: 5
How to prioritise WatchDirectory services at boot
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?
Back to top
 
 
IP Logged
 
Dirk
YaBB Administrator
*****
Offline



Posts: 658
South Germany
Re: How to prioritise WatchDirectory services at b
Reply #1 - 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.
Back to top
 

Viele Grüße / Best regards
Dirk - GdP Software

dirk [at] gdpsoftware [dot] com
http://blog-de.gdpsoftware.com
Webseite: http://www.gdpsoftware.com
WWW WWW  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: How to prioritise WatchDirectory services at b
Reply #2 - 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.h... ), remember to set that user/pwd again.

Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Unclebaby
YaBB Newbies
*
Offline



Posts: 5
Re: How to prioritise WatchDirectory services at b
Reply #3 - Mar 30th, 2011 at 2:01pm
 
Thank you both for the responses and apologies for not getting back sooner.
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1