#Any way to restart a process automatically with Bun?

1 messages · Page 1 of 1 (latest)

glad fractal
#

Working on creating a Bun runtime for open-runtimes.
We use PM2 currently for the node runtime, so when there's a process.exit(), PM2 restarts the application.

Is there a way to do this in Bun natively, or is PM2 the best option?

cedar oracle
#

any response here ?

earnest bay
noble fern
#

Technically a process can restart itself but only if it's not a crash as you would need 2 processes to detect that

earnest bay