MailScanner on boot

Julian Field MailScanner at ecs.soton.ac.uk
Fri Oct 7 16:25:29 IST 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

It's a bit more intelligent than that.
If you do a "service MailScanner stop" it creates a lockfile in
/var/lock/subsys/MailScanner.off. When the hourly cron job runs, it
detects the presence of this file and doesn't then start up MailScanner.

So all you need to do is a "service MailScanner stop" and it will stay
stopped. No need to mess around with the cron jobs at all.

On 7 Oct 2005, at 15:45, Information Services wrote:

      Okay,  I did the 'chkconfig --list MailScanner' and saw the
      different run levels turned on.  So yes, I can see that
      'mailscanner' is not the way to go.  I ran 'chkconfig
      --levels 0123456 MailScanner off' and rebooted.  Still the
      same problem.  Denis, I didn't even thought about the
      cron.hourly job for check_MailScanner.  I removed this from
      the cron.hourly, and rebooted....currently wait for system to
      reboot.......okay rebooted now.

      Looks like removing the check_MailScanner from the
      cron.hourly fixed it.  now when I do a 'service MailScanner
      status' I get an error for sendmail.in.pid and
      sendmail.out.pid.  This would be expected.  now when I decide
      to use MailScanner on this system, I just need to remember to
      add  check_MailScanner back into cron.hourly.

      Nate, thanks for clearing up difference between "MailScanner"
      and "mailscanner," this could have continued to haunt me in
      other situations.

      Casey

      On 10/7/05, Denis Beauchemin
      <Denis.Beauchemin at usherbrooke.ca> wrote:
            Information Services wrote:

            > I have a CentOS 4.1 system with MailScanner
            loaded for the possibility
            > of using in one or our remote locations.  I
            have gone into the GUI
            > services and took the check out of MailScanner
            and Sendmail to startup
            > at boot, but that did not seem to keep
            MailScanner from starting on a
            > boot.  I did a chkconfig and turned off all
            mailscanner levels, and I
            > must not understand the purpose of chkconfig,
            but once again
            > Mailscanner has decided to when the system is
            booted.  What can I do
            > to keep MailScanner from running when the
            system is rebooted?**

            Maybe /etc/cron.hourly/check_MailScanner is
            restarting it?

            OTOH, are you sure MS is completely disabled?  Do
            "chkconfig --list
            MailScanner" and make sure it is off in all run
            levels.


-- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/)
and the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list