Use exec -a to differentiate app and probe process names.

This commit is contained in:
Tom Wilkie
2016-01-06 11:56:09 +00:00
parent e9e152b9a3
commit f8c720f266
3 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ MAINTAINER Weaveworks Inc <help@weave.works>
LABEL works.weave.role=system
WORKDIR /home/weave
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/testing" >>/etc/apk/repositories && \
apk add --update runit conntrack-tools iproute2 util-linux curl && \
apk add --update bash runit conntrack-tools iproute2 util-linux curl && \
rm -rf /var/cache/apk/*
ADD ./docker.tgz /
ADD ./weave /usr/bin/

View File

@@ -1,3 +1,3 @@
#!/bin/sh
#!/bin/bash
exec /home/weave/scope app $(cat /etc/weave/scope-app.args)
exec -a scope-app /home/weave/scope app $(cat /etc/weave/scope-app.args)

View File

@@ -1,3 +1,3 @@
#!/bin/sh
#!/bin/bash
exec /home/weave/scope probe $(cat /etc/weave/scope-probe.args) $(cat /etc/weave/apps)
exec -a scope-probe /home/weave/scope probe $(cat /etc/weave/scope-probe.args) $(cat /etc/weave/apps)