akashic-storage
akashic-storage copied to clipboard
Automatic reboot after shutdown due to fatal error
When fatal error occurs, JVM kills itself (this is configurable but it shouldn't be disabled).
When akashic-storage is in production it shouldn't be stopped for a long time then it should restart automatically. Rebooting only needs binding to the port. It's quick.
The easiest way to do this is making a daemon watching service status and when it's not running start it. the daemon should run outside the JVM akashic-storage daemon is running on.
When user really want to stop the storage, he should first stop the watching daemon and then storage daemon.