Browse Source

Restart avahi daemon

Bob Mottram 9 years ago
parent
commit
75b300a24b
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone

+ 2
- 0
src/freedombone View File

8196
   echo 'exit 0' >> /usr/bin/publish-to-avahi
8196
   echo 'exit 0' >> /usr/bin/publish-to-avahi
8197
   chmod +x /usr/bin/publish-to-avahi
8197
   chmod +x /usr/bin/publish-to-avahi
8198
 
8198
 
8199
+  systemctl restart avahi-daemon
8200
+
8199
   # publish regularly
8201
   # publish regularly
8200
   if ! grep -Fxq "publish-to-avahi" /etc/crontab; then
8202
   if ! grep -Fxq "publish-to-avahi" /etc/crontab; then
8201
       echo '* *       * * *   root    /usr/bin/publish-to-avahi > /dev/null' >> /etc/crontab
8203
       echo '* *       * * *   root    /usr/bin/publish-to-avahi > /dev/null' >> /etc/crontab