Restart stopped services

Post your MailEnable suggestions here.
Post Reply
zeusdk
Posts: 99
Joined: Thu Dec 09, 2004 7:09 pm

Restart stopped services

Post by zeusdk » Thu Aug 24, 2006 3:32 pm

Hi MailEnable

I would like to suggest that the mailserver becomes better to restart it's services, when they stop because of an error.

I have some times seen the smtp-service stop and it was simply solved by manually restarting the service.

(I have told the services to restart on errors, but it is not working).

I have therefore made this aggressive little bat-file that runs every hour:

Code: Select all

@echo off
net stop mesmtpcs
net stop mesmtpcs
net stop mesmtpcs
net stop mesmtpcs
net stop mesmtpcs
net stop mesmtpcs
net stop mesmtpcs
net stop mesmtpcs
net stop mesmtpcs
net stop mesmtpcs

net start mesmtpcs
net start mesmtpcs
net start mesmtpcs
net start mesmtpcs
net start mesmtpcs
net start mesmtpcs
net start mesmtpcs
net start mesmtpcs
net start mesmtpcs
net start mesmtpcs
net start mesmtpcs

net stop mepops
net stop mepops
net stop mepops
net stop mepops
net stop mepops
net stop mepops
net stop mepops
net stop mepops
net stop mepops
net stop mepops

net start mepops
net start mepops
net start mepops
net start mepops
net start mepops
net start mepops
net start mepops
net start mepops
net start mepops
net start mepops

net stop mepocs
net stop mepocs
net stop mepocs
net stop mepocs
net stop mepocs
net stop mepocs
net stop mepocs
net stop mepocs
net stop mepocs
net stop mepocs

net start mepocs
net start mepocs
net start mepocs
net start mepocs
net start mepocs
net start mepocs
net start mepocs
net start mepocs
net start mepocs
net start mepocs

net stop mepopcs
net stop mepopcs
net stop mepopcs
net stop mepopcs
net stop mepopcs
net stop mepopcs
net stop mepopcs
net stop mepopcs
net stop mepopcs
net stop mepopcs

net start mepopcs
net start mepopcs
net start mepopcs
net start mepopcs
net start mepopcs
net start mepopcs
net start mepopcs
net start mepopcs
net start mepopcs
net start mepopcs

net stop meradms
net stop meradms
net stop meradms
net stop meradms
net stop meradms
net stop meradms
net stop meradms
net stop meradms
net stop meradms
net stop meradms

net start meradms
net start meradms
net start meradms
net start meradms
net start meradms
net start meradms
net start meradms
net start meradms
net start meradms
net start meradms

net stop memtas
net stop memtas
net stop memtas
net stop memtas
net stop memtas
net stop memtas
net stop memtas
net stop memtas
net stop memtas
net stop memtas

net start memtas
net start memtas
net start memtas
net start memtas
net start memtas
net start memtas
net start memtas
net start memtas
net start memtas
net start memtas

net stop melcs
net stop melcs
net stop melcs
net stop melcs
net stop melcs
net stop melcs
net stop melcs
net stop melcs
net stop melcs
net stop melcs

net start melcs
net start melcs
net start melcs
net start melcs
net start melcs
net start melcs
net start melcs
net start melcs
net start melcs
net start melcs

net stop meimaps
net stop meimaps
net stop meimaps
net stop meimaps
net stop meimaps
net stop meimaps
net stop meimaps
net stop meimaps
net stop meimaps
net stop meimaps

net start meimaps
net start meimaps
net start meimaps
net start meimaps
net start meimaps
net start meimaps
net start meimaps
net start meimaps
net start meimaps
net start meimaps

net stop mehttps
net stop mehttps
net stop mehttps
net stop mehttps
net stop mehttps
net stop mehttps
net stop mehttps
net stop mehttps
net stop mehttps
net stop mehttps

net start mehttps
net start mehttps
net start mehttps
net start mehttps
net start mehttps
net start mehttps
net start mehttps
net start mehttps
net start mehttps
net start mehttps

zeusdk
Posts: 99
Joined: Thu Dec 09, 2004 7:09 pm

Post by zeusdk » Tue Aug 29, 2006 11:15 am

By the way, the script is working very good. The mailserver is never down anymore.

galance
Posts: 13
Joined: Wed Nov 30, 2005 8:27 pm

Post by galance » Fri Oct 20, 2006 10:56 pm


Post Reply