Thanks, Chairman, I've set it up today, it's easy as a batch file. I will not sleep beside my server any more.
Just one question : are you sure that when smtprcv hangs, it is seens by the system as 'stopped' ? When I wanted to restart it by hand, I had to stop it first. If I understand the script correctly, it stops the services only after a Dr Watson, wouldn't it be safer to place a 'net stop smtprcv' before any 'net start smtprcv' ? ( and extend the loop to 10 minutes or so ) ? Benoit ----- Original Message ----- From: "Chairman of the Bored" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, October 20, 2003 9:29 PM Subject: Re: SMTPRCV Service Problem | | >my keepalive script was written to keep my smtrpcv up.. | >mine dr watsons on me every once in a while, i have no idea why. | >if anyone would like a copy, i'm more than willing to share it. | | okay, some of you might find it a bit ghetto, but here it is | http://www.l7.net/archives/emwac/handy%20stuff/L7-keepalive-for-emwac-ims.v.004.exe | | it keeps my system alive at about a million messages a day, so... | | run this from c:\ via start/run | it will open a dos box that you can then minimize. | what it does is, every 60 seconds, it will try and | restart all services. (note that the old version of | dolist will crash and burn if you do it the same way, | so don't) and check for a drwatson error. | | if the error exists, it will kill the process, bounce | all the services, clear out all the lockfiles, .mri | files, avp temp files, etc. | | here's from the nfo file: | | keepalive and monitoring script for the emwac ims mailserver | - kevin schooler, 13:32.05.07.2002 | http://www.L7.net/ | | notes: | please edit the z-keepalive.bat file, and set the parameters to what works | for your system. | | line 4 (message logged to the logfile) | line 22 (domain directory path for deleting .mri files) | line 24 (mail directory path for deleting lock files) | line 26 (antivirus path for deleting antivirus temp files) | | line 35 is a sleep statement to allow the mailserver to come | back up so that blat can sent the error message to the admin. | this can be shortened, and is in seconds. i.e. sleep 5 will | cause the batch file to pause for 5 seconds. | | line 36 should be edited so it sends your error messages to you, not me :) | the z-keepalive.msg file is the body of the message that will be sent. | | add a rem in front of, or remove, lines 45, 46, 47, if you are | going to schedule this file. otherwise it will just loop continuously. | | note: i renamed some of the utilities, etc. to keep them all in the same | place in a file listing. this whole thing sits in c:\ as written | | acknowledgements: | | this script uses the following executables: | | z-plist.exe - process lister | this is a renamed pslist.exe | PsList v1.12 - Process Information Lister | Copyright (C) 1999-2000 Mark Russinovich | | z-pkill.exe - process killer | this is a renamed kill.exe | kill v3.5 for NT | Copyright (C) 1994 Microsoft Corp. | | z-sleep.exe - pause utility | i found this file on the internet, | and i can find no information on it. | | blat.exe - e mail sending utility | (v1.9.4) Blat - Windows NT/95 util to send | SMTP mail from the command line (Intel | version) Useful for sending mail from | automated jobs, HTML CGI scripts, etc. | Includes source code. Public Domain. | | enjoy. | -dd | | \\\\\// | \\|// _\\|//_ | | _\\|//_ \\|// | (@ @) (' 0-0 ') (.) (.) (' @-@ ') (o-o) | +-=oOOo-(_)-oOOo=oo0=(_)=0oo=oOO=-(_)-=OOo=oo0=(_)=0oo=oOOo-(_)-oOOo=-+ | | Level Seven inc. http://www.L7.net/ | /"\ | The worlds "one stop" InterNetworking Provider 360.753.3556 \ / | +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ X | ASCII Ribbon campaign against HTML E-Mail >- - - - - - - - - - - - - -> / \ | | This is the discussion list for the IMS Free email server software. | To unsubscribe send mailto:[EMAIL PROTECTED] | | Delivered by Rockliffe MailSite | http://www.rockliffe.com/mailsite | Rock Solid Software (tm) | This is the discussion list for the IMS Free email server software. To unsubscribe send mailto:[EMAIL PROTECTED] Delivered by Rockliffe MailSite http://www.rockliffe.com/mailsite Rock Solid Software (tm)
