diff options
Diffstat (limited to 'cmd/gitaly/main.go')
-rw-r--r-- | cmd/gitaly/main.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/gitaly/main.go b/cmd/gitaly/main.go index 43012ae2f..781f5fd67 100644 --- a/cmd/gitaly/main.go +++ b/cmd/gitaly/main.go @@ -136,6 +136,12 @@ func run(cfg config.Cfg) error { ctx, cancel := context.WithCancel(context.Background()) defer cancel() + runtimeDir, err := config.SetupRuntimeDirectory(cfg, os.Getpid()) + if err != nil { + return fmt.Errorf("setup runtime directory: %w", err) + } + cfg.RuntimeDir = runtimeDir + defer func() { if err := os.RemoveAll(cfg.RuntimeDir); err != nil { log.Warn("could not clean up runtime dir") |