Reduce restart interval to one min
This commit is contained in:
parent
820a66a06c
commit
e8c5b0d4e5
|
@ -1702,7 +1702,7 @@ function configure_avahi {
|
||||||
# this is a blatant hack, but I couldn't find a better way of mitigating the problem
|
# this is a blatant hack, but I couldn't find a better way of mitigating the problem
|
||||||
# of avahi-daemon stopping after a few minutes
|
# of avahi-daemon stopping after a few minutes
|
||||||
if ! grep -q "avahi-daemon" /etc/crontab; then
|
if ! grep -q "avahi-daemon" /etc/crontab; then
|
||||||
echo '2 * * * * root systemctl restart avahi-daemon > /dev/null' >> /etc/crontab
|
echo '1 * * * * root systemctl restart avahi-daemon > /dev/null' >> /etc/crontab
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 'configure_avahi' >> $COMPLETION_FILE
|
echo 'configure_avahi' >> $COMPLETION_FILE
|
||||||
|
|
|
@ -120,9 +120,9 @@ function mesh_babel {
|
||||||
echo ' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
|
echo ' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
|
||||||
echo ' if ! grep -q "avahi-daemon" /etc/crontab; then' >> $babel_script
|
echo ' if ! grep -q "avahi-daemon" /etc/crontab; then' >> $babel_script
|
||||||
echo ' if [ -f /bin/systemctl ]; then' >> $babel_script
|
echo ' if [ -f /bin/systemctl ]; then' >> $babel_script
|
||||||
echo " echo '2 * * * * root systemctl restart avahi-daemon > /dev/null' >> /etc/crontab" >> $babel_script
|
echo " echo '1 * * * * root systemctl restart avahi-daemon > /dev/null' >> /etc/crontab" >> $babel_script
|
||||||
echo ' else' >> $babel_script
|
echo ' else' >> $babel_script
|
||||||
echo " echo '2 * * * * root service avahi-daemon restart > /dev/null' >> /etc/crontab" >> $babel_script
|
echo " echo '1 * * * * root service avahi-daemon restart > /dev/null' >> /etc/crontab" >> $babel_script
|
||||||
echo ' fi' >> $babel_script
|
echo ' fi' >> $babel_script
|
||||||
echo ' fi' >> $babel_script
|
echo ' fi' >> $babel_script
|
||||||
echo ' if [ -f /bin/systemctl ]; then' >> $babel_script
|
echo ' if [ -f /bin/systemctl ]; then' >> $babel_script
|
||||||
|
@ -204,9 +204,9 @@ function mesh_batman {
|
||||||
echo ' sed -i "s|hosts:.*|hosts: files mdns4_minimal dns mdns4 mdns|g" /etc/nsswitch.conf' >> $batman_script
|
echo ' sed -i "s|hosts:.*|hosts: files mdns4_minimal dns mdns4 mdns|g" /etc/nsswitch.conf' >> $batman_script
|
||||||
echo ' if ! grep -q "avahi-daemon" /etc/crontab; then' >> $batman_script
|
echo ' if ! grep -q "avahi-daemon" /etc/crontab; then' >> $batman_script
|
||||||
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
||||||
echo " echo '2 * * * * root systemctl restart avahi-daemon > /dev/null' >> /etc/crontab" >> $batman_script
|
echo " echo '1 * * * * root systemctl restart avahi-daemon > /dev/null' >> /etc/crontab" >> $batman_script
|
||||||
echo ' else' >> $batman_script
|
echo ' else' >> $batman_script
|
||||||
echo " echo '2 * * * * root service avahi-daemon restart > /dev/null' >> /etc/crontab" >> $batman_script
|
echo " echo '1 * * * * root service avahi-daemon restart > /dev/null' >> /etc/crontab" >> $batman_script
|
||||||
echo ' fi' >> $batman_script
|
echo ' fi' >> $batman_script
|
||||||
echo ' fi' >> $batman_script
|
echo ' fi' >> $batman_script
|
||||||
echo 'fi' >> $batman_script
|
echo 'fi' >> $batman_script
|
||||||
|
|
Loading…
Reference in New Issue