Skip to content

Commit 9375a86

Browse files
committedJun 22, 2012
grml-hostname: restart avahi-daemon service if present and running
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
1 parent 45b48f9 commit 9375a86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎usr_sbin/grml-hostname

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ Configuration of myhostname in /etc/postfix/main.cf has been adjusted as well. D
5757
fi
5858
fi
5959

60+
if [ -x /etc/init.d/avahi-daemon ] && pgrep avahi-daemon >/dev/null ; then
61+
/etc/init.d/avahi-daemon restart
62+
fi
63+
6064
/etc/init.d/hostname.sh
6165

6266
if [ -z "$NONINTERACTIVE" ] ; then

0 commit comments

Comments
 (0)
Please sign in to comment.