mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-05 20:25:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user