Skip to content

Commit

Permalink
grml-hostname: restart avahi-daemon service if present and running
Browse files Browse the repository at this point in the history
Quoting http://bts.grml.org/grml/issue1182:

| When booting a machine with the hostname parameter avahi
| exports the grml hostname even though another hostname was specified.

Testing: issue1182
Thanks: Ulrich Dangel for the bugreport
  • Loading branch information
mika committed Jun 22, 2012
1 parent 45b48f9 commit 9375a86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usr_sbin/grml-hostname
Expand Up @@ -57,6 +57,10 @@ Configuration of myhostname in /etc/postfix/main.cf has been adjusted as well. D
fi
fi

if [ -x /etc/init.d/avahi-daemon ] && pgrep avahi-daemon >/dev/null ; then
/etc/init.d/avahi-daemon restart
fi

/etc/init.d/hostname.sh

if [ -z "$NONINTERACTIVE" ] ; then
Expand Down

0 comments on commit 9375a86

Please sign in to comment.