diff options
Diffstat (limited to 'node-admin/src/main/sh/node-admin.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 |