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 ea9062f7e6
commit 7e0a5ad781

View File

@ -17,13 +17,16 @@ start()
PIDFILE=/run/hupper.pid PIDFILE=/run/hupper.pid
DOCKERPIDFILE=/run/docker.pid DOCKERPIDFILE=/run/docker.pid
WATCH=$(mobyconfig watch /etc/daemon.json)
[ -z "${WATCH}" && exit 1
start-stop-daemon --start --quiet \ start-stop-daemon --start --quiet \
--background \ --background \
--exec /bin/hupper \ --exec /bin/hupper \
--make-pidfile --pidfile ${PIDFILE} \ --make-pidfile --pidfile ${PIDFILE} \
-- -pidfile ${PIDFILE} -huppidfile ${DOCKERPIDFILE} \ -- -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" eend $? "Failed to start hupper"
} }