  | |  | sendmail service | sendmail service 2004-02-05 - By Jason Dixon
Back 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@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
|
|
 |