mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
fix(pockethost): use SIGINT to kill containers so wal and shm get cleaned up
This commit is contained in:
parent
0665ab216e
commit
aa94c86b78
@ -233,7 +233,11 @@ export const createPocketbaseService = async (
|
||||
started = true
|
||||
resolve({
|
||||
on: emitter.on.bind(emitter),
|
||||
kill: () => container.stop({ signal: `SIGKILL` }).catch(error),
|
||||
kill: () =>
|
||||
container.stop({ signal: `SIGINT` }).catch((e) => {
|
||||
error(e)
|
||||
return container.stop({ signal: `SIGKILL` }).catch(error)
|
||||
}),
|
||||
})
|
||||
})
|
||||
}).catch((e) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user