How to shutdown datomic instance?

Basic questions.

I ran a peer server instance on terminal.

$ bin/run -m datomic.peer-server -h localhost -p 8998 ...(omitted)

Is there other way to shutdown than killing it?

And when I want to stop a transactor, just press Ctrl-C?

Yes, the correct way to stop a peer server or a transactor is to kill the process (i.e. Ctrl-C if you’re running a local one in a terminal).

You can use the shutdown method to close all resources when terminating a peer instance.

2 Likes