Don't run the server in detached state
This commit is contained in:
parent
8eb6a9eb2b
commit
18a2164366
|
@ -250,7 +250,7 @@ export class PeerTubeServer {
|
||||||
const forkOptions = {
|
const forkOptions = {
|
||||||
silent: true,
|
silent: true,
|
||||||
env,
|
env,
|
||||||
detached: true,
|
detached: false,
|
||||||
execArgv
|
execArgv
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@ export class PeerTubeServer {
|
||||||
kill () {
|
kill () {
|
||||||
if (!this.app) return Promise.resolve()
|
if (!this.app) return Promise.resolve()
|
||||||
|
|
||||||
process.kill(-this.app.pid)
|
process.kill(this.app.pid)
|
||||||
|
|
||||||
this.app = null
|
this.app = null
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue