> Despite of this fact it will probably help you to define the
dependencies
> of the ASSP service. This will make sure, that ASSP waits with
starting
> until for example your SMTP service and your MySQL service are
> available. To my mind it is definitely the right way to define the
> dependencies also if this probably will not solve the problem.

well... that's a way to do it; a simpler one would be (as I already
suggested)
to set the services to "manual" startup and then use the windows task
scheduler
to run a script, scheduling it "at system startup" and have such a
script start
the various bits a pieces one at a time; here's an example

@echo off
net start mysql
ping -n 5 -w 1000 0.0.0.1 >NUL 2>&1
net start clamd
ping -n 15 -w 1000 0.0.0.1 >NUL 2>&1
net start freshclam
ping -n 3 -w 1000 0.0.0.1 >NUL 2>&1
net start some_further_service
ping -n 8 -w 1000 0.0.0.1 >NUL 2>&1
net start asspsmtp
exit

the sample script above will start mysql, clamd and some other service
one after the other, the "ping" commands in there are used to introduce
a delay between the start of the various services; for example the first
ping will wait for (about) 5 seconds and the second one for (about) 15
by the way, if you have the resource kit files you may replace the
"ping"
hack with the "sleep" command and obtain the same result, anyways,
at that point, just saving the script as (say) "startsvc.cmd" and
scheduling
it to be executed at system startup will ensure that the script will be
executed
after all the system core services (e.g. networking ...) are
initialized, the
script will then proceed to start each service in the desired orded

it's something like the "rc" files used on unix systems :)



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to