Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
in
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview Wiki

Running Mercury/32 as an NT Service

Last post 06-01-2007, 18:17 by Thomas R. Stephenson. 1 replies.
Sort Posts: Previous Next
  •  04-22-2007, 15:20

    Running Mercury/32 as an NT Service

    As of this writing, Mercury/32 (currently v3.21c) does not directly provide an option for running as a service. However, you can use the MS SRVANY utility from the Windows NT Resource Kit (ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt40/) in order to make Mercury/32 run as an NT Service. Here is a summary of the steps:

    1. Obtain a copy of SRVANY.EXE and its supporting files and copy SRVANY.EXE to the WinNT SYSTEM32 sub-directory (for this discussion, we'll assume that directory is c:\winnt\system32).
       
    2. Type: INSTSRV Mercury32 c:\winnt\system32\srvany.exe
      This step adds a service called Mercury32, which will use the srvany utility to control the Mercury/32 application program.
      There is also a GUI version of INSTSRV (called SRVINSTW.exe) which will walk you through the above step, if you prefer.
       
    3. Run the registry editor (Regedit.exe) and add a "Parameters" key to the Mercury32 service under the following location:
      HKLM\System\Current Control Set\Services\Mercury32
      Within this new key (HKLM\System\Current Control Set\Services\Mercury32\Parameters), add a value of type REG_SZ called "Application".
      The value of this string should be the full path to the Mercury.exe application.
      ie: "d:\mercury\mercury.exe"
       
    4. Open the Services icon within the Windows Control Panel and check the "Allow interact with desktop" checkbox for the Mercury32 service, then try starting it.
       

    The above procedure is documented in the SRVANY.WRI file if the above instructions are not clear enough.

    WARNING! Mercury/32 only saves it's settings when you close the Mercury/32 application. If Mercury/32 crashes or the PC crashes, any changes you made to Mercury/32 since you last started it will not have been saved.

    Keeping the above warning in mind and the fact that Mercury/32 is not a true service, you should never shut down Mercury/32 by just stopping the Mercury/32 service from within the Services control panel applet. If you need to shut down the Mercury/32 service, you should first close Mercury/32's own application window (File -> Exit menu option) before shutting down the Mercury/32 service entry within the Services control panel applet. You can then start Mercury/32 again from the Services control panel applet, if you wish.

    Some sites have also reported success using FireDaemon for WinNT/2K/XP (http://www.firedaemon.com/) to run Mercury/32 as a service under WinNT/2K/XP.

  •  06-01-2007, 18:17

    Re: Running Mercury/32 as an NT Service

    For those that need a wrapper that works with Netware as well I recommend NT Wrapper.  It allows you to run as as a specific user and still maintain the GUI interface.

     

    The NT Wrapper allows standard Win32 applications or scripts to be run as a Windows NT/2000/XP/2003 Service. 

    Features:
        ·    Easy configuration thru a GUI and simple INI files. 
        ·    Prioritization of sub-processes. 
        ·    Custom environments. 
        ·    CPU binding 
        ·    Redirecting of Stdout/Stderr to file 
        ·    Logging to the event log and to disk. 
        ·    The capability to run multiple applications in a single NT Wrapper service instance. 
        ·    Monitoring of a service in the sys-tray. 

    http://www.duodata.de/ntwrapper/



     


    Thomas R. Stephenson
    San Jose, California
    Member of Pegasus Mail Support Team

    I do not answer private messages from the forum. If you want to contact me use email to techsupp@tstephenson.com.
View as RSS news feed in XML

Contact | Advertise | Host provider: PraktIT | Terms of Use | Privacy Statement
Copyright © 2007-2011 David Harris / Peter Strömblad. | Pegasus Mail Home Page