Announcement

Collapse

NextGen (Mirth) Connect 3.10.0 Released!

NextGen (Mirth) Connect 3.10.0 is now available as an appliance update and on our GitHub page. This release includes better SQL Server database support, security improvements through fixes and library updates, and improvements for the Advanced Clustering plugin with a focus on improving performance of many of the tasks that are carried out on a frequent interval. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

pidfile location in 2.1?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • pidfile location in 2.1?

    Hi, coming from 1.8 there was a Mirth.pid file in mirth's home directory that stored mirth's process id, this was useful for setting up monitoring of the mirth service, has this moved or been disabled by default? I can not locate a pidfile for mirth in 2.1.

    Thanks!
    Stephen

  • #2
    Is this just gone now?

    Comment


    • #3
      The server never directly generated a PID file, so it must have been created by the service wrapper we were using for 1.8.x:

      http://wrapper.tanukisoftware.com/do...-overview.html

      We have since switched to a different wrapper, but I'm not sure if it has the option to generate a PID file:

      http://www.ej-technologies.com/produ.../overview.html

      If you find any info on how to have it generated we can look into opening an issue for the next release.
      Gerald Bortis | Chief Information Officer | Mirth Corporation

      Comment


      • #4
        Originally posted by geraldb View Post
        The server never directly generated a PID file, so it must have been created by the service wrapper we were using for 1.8.x:

        http://wrapper.tanukisoftware.com/do...-overview.html

        We have since switched to a different wrapper, but I'm not sure if it has the option to generate a PID file:

        http://www.ej-technologies.com/produ.../overview.html

        If you find any info on how to have it generated we can look into opening an issue for the next release.
        It seems silly that any service expected to run on linux wouldn't be able to create/manage its own pidfile by default... oh well, thanks for your help!

        Stephen
        Last edited by stephencohorn; 06-06-2011, 07:54 AM.

        Comment


        • #5
          Actually I just edited the provided mcservice script to do this... at the bottom of the file in the case statement for 'start', 'start-launchd', and 'restart|force-reload', underneath the java call that starts mirth in the background, I added the following line:

          echo $! > $prg_dir/mirth.pid #save a copy of the pid

          I also added 'rm $prg_dir/mirth.pid' underneath the java 'stop' calls that stop mirth. $! holds the PID of the last process spawned by the script, i.e. mirth server when it is started by mcservice script. Just dump that onto a pid file and its done. If you could include this in future releases that'd be great! Surely others use monitoring tools that expect a pid file to know which process to monitor also.


          Thanks!
          Stephen

          Comment


          • #6
            http://wrapper.tanukisoftware.com/do...p-pidfile.html

            Comment


            • #7
              See geraldb's reply above, they are no longer using the wrapper you linked to for the service in version 2.1 of Mirth. The new wrapper does not seem to have any options for creating a PID file (At least I did not see any from a quick search of their documentation): http://resources.ej-technologies.com...p/doc/help.pdf Gerald, it would be nice if you guys could tack this on in future releases so I don't have my customizations lost if I don't upgrade carefully.

              Thanks!
              Stephen

              Comment


              • #8
                I've contacted the install4j folks and received the following:
                This feature isn't available at this time in install4j and we added it in our feature requests list.
                As soon as it's available we'll update the service to use this feature.
                Gerald Bortis | Chief Information Officer | Mirth Corporation

                Comment


                • #9
                  Have their been any updates to the ability to get the PID file / PID itself in newer version of Mirth Connect?

                  Comment


                  • #10
                    I guess not ... also looking for this :-(

                    EDIT:
                    Found it ...
                    https://gist.github.com/jgautsch/9157402

                    Works for my Monit :-)
                    Last edited by discofris; 12-04-2015, 04:27 AM. Reason: Found it!!
                    Mirth Connect Server 3.4.1.8057
                    Java version: 1.8.0_101

                    on Debian 8.5 and various Winboxes

                    Comment

                    Working...
                    X