use mobyconfig watch for hupper

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2016-04-07 16:27:24 +01:00
parent 8b5044e040
commit 952a3e53c9

View File

@@ -17,13 +17,16 @@ start()
PIDFILE=/run/hupper.pid
DOCKERPIDFILE=/run/docker.pid
WATCH=$(mobyconfig watch /etc/daemon.json)
[ -z "${WATCH}" && exit 1
start-stop-daemon --start --quiet \
--background \
--exec /bin/hupper \
--make-pidfile --pidfile ${PIDFILE} \
-- -pidfile ${PIDFILE} -huppidfile ${DOCKERPIDFILE} \
-path /Database/branch/master/watch/com.docker.driver.amd64-linux.node/etc.node/docker.node/daemon.json.node/tree.live
-path ${WATCH}
eend $? "Failed to start hupper"
}