mardi 3 février 2015

FreeBSD: Restart one service each time another restarts


On FreeBSD, what is the correct/canonical way of specifying that one rc script is reliant on another, such that each time the service it depends on is restarted, the dependent service is then restarted also?


For example, on my FreeBSD server, any time the network configuration is changed, the poorly-written avahi-daemon will no longer work until it is restarted. How can I specify that each time /etc/rc.d/netif is (re)started, /usr/local/etc/rc.d/avahi-daemon must be restarted?


Thanks.



Aucun commentaire:

Enregistrer un commentaire