15954: Move pid/log files out of source tree.
authorTom Clegg <tom@tomclegg.ca>
Tue, 18 Feb 2020 16:28:47 +0000 (11:28 -0500)
committerTom Clegg <tom@tomclegg.ca>
Tue, 18 Feb 2020 16:28:47 +0000 (11:28 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>

lib/boot/passenger.go

index 4aada107bcf569028675b923c5e418479fb7291b..61f97df5269ef8c70eedcc432b005a408a60e4e5 100644 (file)
@@ -82,7 +82,11 @@ func (runner runPassenger) Run(ctx context.Context, fail func(error), boot *Boot
                return fmt.Errorf("bug: no InternalURLs for component %q: %v", runner, runner.svc.InternalURLs)
        }
        go func() {
-               err = boot.RunProgram(ctx, runner.src, nil, nil, "bundle", "exec", "passenger", "start", "-p", port)
+               err = boot.RunProgram(ctx, runner.src, nil, nil, "bundle", "exec",
+                       "passenger", "start",
+                       "-p", port,
+                       "--log-file", "/dev/null",
+                       "--pid-file", filepath.Join(boot.tempdir, "passenger."+strings.Replace(runner.src, "/", "_", -1)+".pid"))
                fail(err)
        }()
        return nil