Re: sendmail service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2004-02-07 at 08:32, Muhammad Rizwan Khan wrote:
> Hello list!
> 
> How i can assure that sendmail is running on my system, and if any time it 
> fails it should restart automatically.

Here's an overly simplified version.  I'm just waking up, use at your
own peril:

#!/bin/sh
[ "`service sendmail status`" == "sendmail is stopped" ] && service sendmail start
[ "`service sendmail status`" == "sendmail dead but pid file exists" ] && service sendmail restart

That said, it works fine on my box in both cases.

HTH.

-- 
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux