Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>
// Print version information if requested
if *getVersion {
- fmt.Printf("Version: %s\n", version)
- os.Exit(0)
+ fmt.Printf("arv-git-httpd %s\n", version)
+ return
}
err := config.LoadFile(theConfig, *cfgPath)
if _, err := daemon.SdNotify(false, "READY=1"); err != nil {
log.Printf("Error notifying init daemon: %v", err)
}
- log.Printf("arv-git-httpd %q started", version)
+ log.Printf("arv-git-httpd %s started", version)
log.Println("Listening at", srv.Addr)
log.Println("Repository root", theConfig.RepoRoot)
if err := srv.Wait(); err != nil {
// Print version information if requested
if *getVersion {
- fmt.Printf("Version: %s\n", version)
- os.Exit(0)
+ fmt.Printf("crunch-dispatch-local %s\n", version)
+ return nil
}
- log.Printf("crunch-dispatch-local %q started", version)
+ log.Printf("crunch-dispatch-local %s started", version)
runningCmds = make(map[string]*exec.Cmd)
// Print version information if requested
if *getVersion {
- fmt.Printf("Version: %s\n", version)
- os.Exit(0)
+ fmt.Printf("crunch-dispatch-slurm %s\n", version)
+ return nil
}
- log.Printf("crunch-dispatch-slurm %q started", version)
+ log.Printf("crunch-dispatch-slurm %s started", version)
err := readConfig(&theConfig, *configPath)
if err != nil {
// Print version information if requested
if *getVersion {
- fmt.Printf("Version: %s\n", version)
- os.Exit(0)
+ fmt.Printf("crunch-run %s\n", version)
+ return
}
- log.Printf("crunch-run %q started", version)
+ log.Printf("crunch-run %s started", version)
containerId := flag.Arg(0)
// Print version information if requested
if *getVersion {
- fmt.Printf("Version: %s\n", version)
- os.Exit(0)
+ fmt.Printf("crunchstat %s\n", version)
+ return
}
- reporter.Logger.Printf("crunchstat %q started", version)
+ reporter.Logger.Printf("crunchstat %s started", version)
if reporter.CgroupRoot == "" {
reporter.Logger.Fatal("error: must provide -cgroup-root")
"flag"
"fmt"
"net/http"
- "os"
"git.curoverse.com/arvados.git/sdk/go/arvados"
"git.curoverse.com/arvados.git/sdk/go/health"
// Print version information if requested
if *getVersion {
- fmt.Printf("Version: %s\n", version)
- os.Exit(0)
+ fmt.Printf("arvados-health %s\n", version)
+ return
}
log.SetFormatter(&log.JSONFormatter{
TimestampFormat: "2006-01-02T15:04:05.000000000Z07:00",
})
- log.Printf("arvados health %q started", version)
+ log.Printf("arvados-health %s started", version)
cfg, err := arvados.GetConfig(*configFile)
if err != nil {
// Print version information if requested
if *getVersion {
- fmt.Printf("Version: %s\n", version)
- os.Exit(0)
+ fmt.Printf("keep-balance %s\n", version)
+ return
}
mustReadConfig(&cfg, *configPath)
log.Fatal(config.DumpAndExit(cfg))
}
- log.Printf("keep-balance %q started", version)
+ log.Printf("keep-balance %s started", version)
if *debugFlag {
debugf = log.Printf
// Print version information if requested
if *getVersion {
- fmt.Printf("Version: %s\n", version)
- os.Exit(0)
+ fmt.Printf("keep-web %s\n", version)
+ return
}
if err := config.LoadFile(cfg, configPath); err != nil {
log.Fatal(config.DumpAndExit(cfg))
}
- log.Printf("keep-web %q started", version)
+ log.Printf("keep-web %s started", version)
os.Setenv("ARVADOS_API_HOST", cfg.Client.APIHost)
srv := &server{Config: cfg}
// Print version information if requested
if *getVersion {
- fmt.Printf("Version: %s\n", version)
- os.Exit(0)
+ fmt.Printf("keepproxy %s\n", version)
+ return
}
err := config.LoadFile(cfg, cfgPath)
log.Fatal(config.DumpAndExit(cfg))
}
- log.Printf("keepproxy %q started", version)
+ log.Printf("keepproxy %s started", version)
arv, err := arvadosclient.New(&cfg.Client)
if err != nil {
// Print version information if requested
if *getVersion {
- fmt.Printf("Version: %s\n", version)
- os.Exit(0)
+ fmt.Printf("keepstore %s\n", version)
+ return
}
deprecated.afterFlagParse(theConfig)
log.Fatal(config.DumpAndExit(theConfig))
}
- log.Printf("keepstore %q started", version)
+ log.Printf("keepstore %s started", version)
err = theConfig.Start()
if err != nil {
import (
"flag"
"fmt"
- "os"
"git.curoverse.com/arvados.git/sdk/go/config"
"git.curoverse.com/arvados.git/sdk/go/ctxlog"
// Print version information if requested
if *getVersion {
- fmt.Printf("Version: %s\n", version)
- os.Exit(0)
+ fmt.Printf("arvados-ws %s\n", version)
+ return
}
err := config.LoadFile(&cfg, *configPath)
return
}
- log.Printf("arvados-ws %q started", version)
-
- log.Info("started")
+ log.Printf("arvados-ws %s started", version)
srv := &server{wsConfig: &cfg}
log.Fatal(srv.Run())
}