Restart avahi daemon

This commit is contained in:
Bob Mottram 2015-08-24 20:20:59 +01:00
parent 1f7be0efd8
commit 75b300a24b
1 changed files with 2 additions and 0 deletions

View File

@ -8196,6 +8196,8 @@ function tox_avahi {
echo 'exit 0' >> /usr/bin/publish-to-avahi echo 'exit 0' >> /usr/bin/publish-to-avahi
chmod +x /usr/bin/publish-to-avahi chmod +x /usr/bin/publish-to-avahi
systemctl restart avahi-daemon
# publish regularly # publish regularly
if ! grep -Fxq "publish-to-avahi" /etc/crontab; then if ! grep -Fxq "publish-to-avahi" /etc/crontab; then
echo '* * * * * root /usr/bin/publish-to-avahi > /dev/null' >> /etc/crontab echo '* * * * * root /usr/bin/publish-to-avahi > /dev/null' >> /etc/crontab