Nice reload of config with sendmail
James Gray
james at grayonline.id.au
Wed Jul 12 17:09:39 IST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ugo Bellavance wrote:
> Hi,
>
> What is the less disturbing way to reload the MS/Sendmail config on a
> server?
>
> send a HUP to all sendmail process, then do a '/etc/init.d/MailScanner
> reload'?
>
> Thanks,
>
> Ugo
"init 6" usually does the trick ;)
Personally, I just HUP the MS parent[1] (which kills all the kids before
spawning a new brood of rug-rats) and "killall -HUP sendmail". I put
all that in a bash script and dumped it in /root/bin/mail-reload.sh
Cant reach that network ATM otherwise I'd send you a copy.
Cheers,
James
[1] egrep + sed is your friend with this one.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEtR7DwBHpdJO7b9ERAq5UAJ9Dq+AVNZP0H09zidQfbuewwYDbUACeNdfi
CnRhtXNPlybDe2JBbLxEPhI=
=WNyV
-----END PGP SIGNATURE-----
More information about the MailScanner
mailing list