advertise moby hostname not always docker.local.

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
Justin Cormack 2015-12-11 14:42:37 +00:00
parent 88858f855c
commit 66c349a0db

View File

@ -14,12 +14,14 @@ start()
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/mdnstool.pid
HOSTNAME=$(hostname -s).local.
# start-stop-daemon --start --quiet \
# --exec /sbin/mdnstool \
# --pidfile "${PIDFILE}" \
# -- if eth0
# -- if eth0 -hostname ${HOSTNAME}
# eend $? "Failed to start mDNS server"
/sbin/mdnstool if eth0 -detach &
/sbin/mdnstool if eth0 -hostname ${HOSTNAME} -detach &
}
stop()