From 18a2164366e470b02857269a5e7527fff038d9d2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 15 May 2023 14:02:13 +0200 Subject: Don't run the server in detached state --- shared/server-commands/server/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shared/server-commands') diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts index c8f6a0c5b..598b7beed 100644 --- a/shared/server-commands/server/server.ts +++ b/shared/server-commands/server/server.ts @@ -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 -- cgit v1.2.3