web stats
Linux best practices - Page 2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #11  
Old 12-03-2019, 02:13 AM
Fersn86 Fersn86 is offline
What's HL7?
 
Join Date: Dec 2019
Posts: 1
Fersn86 is on a distinguished road
Default Systemd implementation

Today i set up a Mirth server in our company and i had problems with starting the service at logon.

I wanted to start the service via systemd implementation.

Now i have the solution.

Service file in path /etc/systemd/system
I called it mirthservice.service

Content in the file:

# Contents of /etc/systemd/system/mirthservice.service
[Unit]
Description=Mirth Service

[Service]
Type=forking
User=root
WorkingDirectory=/srv/mirthconnect/
ExecStart=/srv/mirthconnect/mcservice start
ExecStop=/srv/mirthconnect/mcservice stop
ExecRestart=/srv/mirthconnect/mcservice restart
Restart=on-failure

[Install]
WantedBy=multi-user.target
Reply With Quote
Reply

Tags
daemon, linux, non-root, service, startup

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation