fix(pockethost): use SIGINT to kill containers so wal and shm get cleaned up

This commit is contained in:
Ben Allfree 2024-08-05 12:21:02 +00:00
parent 0665ab216e
commit aa94c86b78

View File

@ -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) => {