Re: sendmail

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

 



Tim wrote:
Tim:
An alternative would be to put a restart script into the Network Manager
Dispatcher directory.  That way sendmail will be restarted any time the
network goes down and up.  A smart script would check whether it should
restart a running service, or do nothing to a deliberately stopped
service.

Knute Johnson:
Could you provide a little more detail on exactly how to do this?

I've attached a not-so-intelligent script for restarting the NTP daemon
(it starts or restarts it, but doesn't "do nothing" if NTPD were
manually stopped beforehand).  When a network interface comes up, it
starts NTP if it's not already running, it restarts it if were.  And
when the interface goes down, it stops it.  The LOGGER bit, in it, is
about putting entries into /var/log/messages, as well.

You could modify it to start/restart sendmail, or any other service, and
modify it leave to leave the service running all the time.



Tim:

That worked like a charm, thanks very much.

--

Knute Johnson
linux@xxxxxxxxxxxxxxxxxxxx

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux