Skip to content

Instantly share code, notes, and snippets.

@bbhoss
Created August 21, 2014 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save bbhoss/831d9e90f9f10ce96bb0 to your computer and use it in GitHub Desktop.
Save bbhoss/831d9e90f9f10ce96bb0 to your computer and use it in GitHub Desktop.
Mirth systemd descriptor for CentOS/RHEL 7. Just extract the mirthconnect tarball to /opt/mirthconnect, create a system user for mirth, chown accordingly, and install/enable this config file.
[Unit]
Description=Mirth Connect Interface Engine
After=network.target
[Service]
Type=forking
User=mirth
Group=mirth
ExecStart=/opt/mirthconnect/mcservice start
ExecStop=/opt/mirthconnect/mcservice stop
ExecRestart=/opt/mirthconnect/mcservice restart
# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=60
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment