projects
/
grml-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
grml-hostname: restart avahi-daemon service if present and running
[grml-scripts.git]
/
usr_sbin
/
grml-hostname
diff --git
a/usr_sbin/grml-hostname
b/usr_sbin/grml-hostname
index
e97c353
..
b529d17
100755
(executable)
--- a/
usr_sbin/grml-hostname
+++ b/
usr_sbin/grml-hostname
@@
-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