mirror of
https://github.com/weaveworks/scope.git
synced 2026-04-30 14:28:03 +00:00
23 lines
463 B
Bash
Executable File
23 lines
463 B
Bash
Executable File
#!/bin/bash
|
|
|
|
mkdir -p /var/run/weave
|
|
|
|
for arg in "$@"; do
|
|
case "$arg" in
|
|
--no-app|--probe-only|--service-token*|--probe.token*)
|
|
touch /etc/service/app/down
|
|
;;
|
|
--no-probe|--app-only)
|
|
touch /etc/service/probe/down
|
|
;;
|
|
esac
|
|
done
|
|
|
|
# shellcheck disable=SC2034
|
|
ARGS=("$@")
|
|
|
|
typeset -p ARGS >/var/run/weave/scope-app.args
|
|
typeset -p ARGS >/var/run/weave/scope-probe.args
|
|
|
|
exec /home/weave/runsvinit
|