diff options
author | HÃ¥kon Hallingstad <hakon@oath.com> | 2018-01-23 10:08:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-23 10:08:26 +0100 |
commit | 41f9201a847e9b7aeb9641950db220dba0ab38bf (patch) | |
tree | df8c064cfe520034207333c222e67b64e3509029 /node-admin/src/main/sh | |
parent | 446c42d02f86780cc0626e29eddab56be33d50e3 (diff) |
Revert "Revert "Redefine task and its context""
Diffstat (limited to 'node-admin/src/main/sh')
-rwxr-xr-x | node-admin/src/main/sh/node-admin.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/node-admin/src/main/sh/node-admin.sh b/node-admin/src/main/sh/node-admin.sh index ff0ea492318..3196ff9fa32 100755 --- a/node-admin/src/main/sh/node-admin.sh +++ b/node-admin/src/main/sh/node-admin.sh @@ -67,16 +67,19 @@ EOF exit 1 } -if (( $# != 1 )); then +if (( $# == 0 )); then Usage fi -case "$1" in +command="$1" +shift + +case "$command" in start) - "$VESPA_HOME"/libexec/vespa/standalone-container.sh start -s node-admin -u root + "$VESPA_HOME"/libexec/vespa/standalone-container.sh start -s node-admin -u root "$@" ;; stop) - "$VESPA_HOME"/libexec/vespa/standalone-container.sh stop -s node-admin -u root + "$VESPA_HOME"/libexec/vespa/standalone-container.sh stop -s node-admin -u root "$@" ;; *) Usage ;; esac |