mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
* Add dry run flag to scope, so when launched we can check the args are valid. * Try and parse listen address and error early. * Specify that -dry-run is for internal use only.
20 lines
408 B
Bash
Executable File
20 lines
408 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
|
|
|
|
echo "$@" >/var/run/weave/scope-app.args
|
|
echo "$@" >/var/run/weave/scope-probe.args
|
|
|
|
exec /home/weave/runsvinit
|