mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 19:05:37 +00:00
use mobyconfig watch for hupper
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
ea9062f7e6
commit
7e0a5ad781
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user