Don't run the server in detached state

pull/5817/head
Chocobozzz 2023-05-15 14:02:13 +02:00
parent 8eb6a9eb2b
commit 18a2164366
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ export class PeerTubeServer {
const forkOptions = {
silent: true,
env,
detached: true,
detached: false,
execArgv
}
@ -317,7 +317,7 @@ export class PeerTubeServer {
kill () {
if (!this.app) return Promise.resolve()
process.kill(-this.app.pid)
process.kill(this.app.pid)
this.app = null