From 7e0a5ad781b80d45238a4bca64040a8ecc880dd4 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Thu, 7 Apr 2016 16:27:24 +0100 Subject: [PATCH] use mobyconfig watch for hupper Signed-off-by: Justin Cormack --- alpine/packages/hupper/etc/init.d/hupper | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alpine/packages/hupper/etc/init.d/hupper b/alpine/packages/hupper/etc/init.d/hupper index 2a73e2205..7e18b0044 100755 --- a/alpine/packages/hupper/etc/init.d/hupper +++ b/alpine/packages/hupper/etc/init.d/hupper @@ -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" }