Skip to content

Instantly share code, notes, and snippets.

@tedb19
Forked from bbhoss/mirthconnect.service
Created November 1, 2016 09:27
Show Gist options
  • Save tedb19/6f6ad937ebc181694dbea8c812328df7 to your computer and use it in GitHub Desktop.
Save tedb19/6f6ad937ebc181694dbea8c812328df7 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