X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a4959ce78b69f1f4e0e59e2458af8d11bc1d5510..1f92b08e21c19dfa0c6d2260fe2fd8b24529e9e3:/services/crunch-dispatch-slurm/usage.go diff --git a/services/crunch-dispatch-slurm/usage.go b/services/crunch-dispatch-slurm/usage.go index 032d86284d..785843b198 100644 --- a/services/crunch-dispatch-slurm/usage.go +++ b/services/crunch-dispatch-slurm/usage.go @@ -2,38 +2,23 @@ // // SPDX-License-Identifier: AGPL-3.0 -package main +package dispatchslurm import ( "flag" "fmt" - "os" ) -var exampleConfigFile = []byte(` - { - "Client": { - "APIHost": "zzzzz.arvadosapi.com", - "AuthToken": "xyzzy", - "Insecure": false - "KeepServiceURIs": [], - }, - "CrunchRunCommand": ["crunch-run"], - "PollPeriod": "10s", - "SbatchArguments": ["--partition=foo", "--exclude=node13"], - "ReserveExtraRAM": 268435456, - }`) - func usage(fs *flag.FlagSet) { - fmt.Fprintf(os.Stderr, ` + fmt.Fprintf(fs.Output(), ` crunch-dispatch-slurm runs queued Arvados containers by submitting SLURM batch jobs. Options: `) fs.PrintDefaults() - fmt.Fprintf(os.Stderr, ` -Example config file: -%s -`, exampleConfigFile) + fmt.Fprintf(fs.Output(), ` + +For configuration instructions see https://doc.arvados.org/install/crunch2-slurm/install-dispatch.html +`) }