Add conditional services based on mobyplatform

Replaces https://github.com/docker/moby/pull/282

Use mobyplatform=xxx to specify platform in boot command

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2016-07-18 12:20:37 +01:00
parent 18bcc15d20
commit 67b2a00853
10 changed files with 57 additions and 31 deletions

View File

@@ -2,11 +2,13 @@
depend()
{
before docker
before docker
}
start()
{
[ "$(mobyplatform)" != "mac" ] && [ "$(mobyplatform)" != "windows" ] && exit 0
ebegin "Setting up proxy port service"
mkdir -p /port
@@ -32,6 +34,8 @@ start()
stop()
{
[ "$(mobyplatform)" != "mac" ] && [ "$(mobyplatform)" != "windows" ] && exit 0
ebegin "Stopping proxy port service"
[ -n "${PIDFILE}" ] || PIDFILE=/var/run/proxy-vsockd.pid