My 2 cents....

I don't believe that, for example, making ASSP depend on something like
MySQL or ClamAV is a good idea, because not everyone will be using MySQL
and/or ClamAV (Even SMTPSVC may not be running on the same server...), and
besides, if MySQL is not available, ASSP will fall back to local files...

Maybe it's just better to document these 'additional' ways, and put them on
the site, then users can read/select which is best for their environment....



Steve


On 9/14/09 12:30 PM, "Marco Rauchenstein" <m.rauchenst...@itprime.ch> wrote:

> Hello GreyHat
>
> Of course there is always more than one way to reach a goal. One Advantage in
> my suggestion is that Windows is responsible to control the Services (no fixed
> time to wait). Another advantage will be that if one try to stop a service
> like MySQL that ASSP depends on Windows will ensure that ASSP have to be
> stopped first.
>
> In my opinion it is easy to implement as well.
>
> - Start -> run -> regedit
>
> - go to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ASSPSMTP]
>
> - Create a new Registry value named "DependonService" based on REG_MULTI_SZ as
> the data type.
>
> - Add the service names that ASSP depends on based on the names in the
> Registry (for example: MySQL SMTPSVC)
>
> - Add a description for the service if you are already in the Registry, for
> example "Open Source Anit-Spam Smtp Proxy"
>
> - Finally Export the Registry Key to use it for a second ASSP system if
> available.
>
> best regards
> Marco
>
>
>
>
> -----Original Message-----
> From: GrayHat [mailto:gray...@gmx.net]
> Sent: Montag, 14. September 2009 09:16
> To: ASSP development mailing list
> Subject: Re: [Assp-test] ASSP Service start Problem - Windows
>
>
>> 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
>
> ------------------------------------------------------------------------------
> 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


------------------------------------------------------------------------------
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