Results 1 to 3 of 3

Thread: Auto-restart spamd if Exim is running

  1. #1
    Join Date
    Feb 2006
    Posts
    885

    Auto-restart spamd if Exim is running

    From time-to-time, spamd just disappears, an unfiltered email streams into people's mail boxes. It happens more with current version than the older versions. I would only want it to restart if Exim was running. /usr/local/etc/rc.d/exim gets spamd running again, but it also seems /usr/bin/spamd -d -c -m 15 works because the spamd tags appear in the incoming email headers after that, and then it also wouldn't interfere with email being downloaded, so users wouldn't get a password prompt in Outlook, as is the case any time Exim goes away while they are checking or downloading E-Mails.

    The reason I'm asking here is to make sure that wheel hasn't already been invented before I write a script to check and restart it, or write something in Zabbix to do it. I'll probably check other stuff too such as ClamAV, and if there are any other daemons I should be checking in relation to E-Mail too, such as ClamAV, let me know. Otherwise I'll probably write something like: if exim is running and it's not between this time and that time(some sort of maintenance thing going on at that time); if <some config file exists>; check that daemon is running, if not; start it etc...

    Thanks!

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,743
    Hello,

    Actually Directadmin has its own service monitor, which is used for checking services and start them is they are down.
    Potentially it can be configured to check spamd as well.

    You don't need zabbix for it
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  3. #3
    Join Date
    Feb 2006
    Posts
    885
    I want something that only starts processes if the master process is running. For Zabbix it is built in. I wrote a script and posted a How-To on it here for when I don't want to do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •