Start Mirth Connect as a Service on Boot
Datica Alumni — Former Chief Data Officer
You want total uptime with your Mirth Connect servers. They should be resilient to the problems that usually beleaguer the healthcare cloud. This includes arbitrary reboots. Arbitrary reboots are the currency of the cloud and you should be prepared for them.
Did you know you can start/restart Mirth Connect as a Linux service? I wouldn’t be surprised if you didn’t. I’m a big fan of RTFM, but you aren’t really told in the manual or find it easily in a google search.
Mirth talks a lot about starting and stopping the service using the GUI, but you really want your servers to try to stand themselves up in the event of an unforeseen outage. This is pretty easy to setup.
First, if you were unaware, you can use mcservice (in Mirth 3.* anyways) like any regular Linux service with:
service mcservice start|stop|status|restart|force-reload
Your options are pretty self-explanatory. If you want to set mcservice to automatically start on start/reboot, you simply need to input:
sudo update-rc.d mcservice defaults
This will restart mirth on boot, which on a VM running SSDs usually occurs within seconds. If you have a setup like Datica where you have load-balanced, redundant servers ready to receive and process messages to incur a zero downtime outage. Otherwise, this should have you up and running again quickly and painlessly.