Init commit
This commit is contained in:
10
apps/peertube-runner/src/register/shutdown.ts
Normal file
10
apps/peertube-runner/src/register/shutdown.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { IPCClient } from '../shared/ipc/index.js'
|
||||
|
||||
export async function gracefulShutdown () {
|
||||
const client = new IPCClient()
|
||||
await client.run()
|
||||
|
||||
await client.askGracefulShutdown()
|
||||
|
||||
client.stop()
|
||||
}
|
||||
Reference in New Issue
Block a user