aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-15 14:02:13 +0200
committerChocobozzz <me@florianbigard.com>2023-05-15 14:02:13 +0200
commit18a2164366e470b02857269a5e7527fff038d9d2 (patch)
treee53f080c02b8e904c604699493d238754d7cc314 /shared/server-commands
parent8eb6a9eb2b42d869d9b0eb0ae479417d1b6afaf1 (diff)
downloadPeerTube-18a2164366e470b02857269a5e7527fff038d9d2.tar.gz
PeerTube-18a2164366e470b02857269a5e7527fff038d9d2.tar.zst
PeerTube-18a2164366e470b02857269a5e7527fff038d9d2.zip
Don't run the server in detached state
Diffstat (limited to 'shared/server-commands')
-rw-r--r--shared/server-commands/server/server.ts4
1 files changed, 2 insertions, 2 deletions
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 {
250 const forkOptions = { 250 const forkOptions = {
251 silent: true, 251 silent: true,
252 env, 252 env,
253 detached: true, 253 detached: false,
254 execArgv 254 execArgv
255 } 255 }
256 256
@@ -317,7 +317,7 @@ export class PeerTubeServer {
317 kill () { 317 kill () {
318 if (!this.app) return Promise.resolve() 318 if (!this.app) return Promise.resolve()
319 319
320 process.kill(-this.app.pid) 320 process.kill(this.app.pid)
321 321
322 this.app = null 322 this.app = null
323 323