Install Quartz.Net as a windows service and Test installation

Posted by Tarun Arora on Geeks with Blogs See other posts from Geeks with Blogs or by Tarun Arora
Published on Fri, 16 Nov 2012 20:02:00 GMT Indexed on 2012/11/16 23:01 UTC
Read the original article Hit count: 1453

Filed under:

In this blog post I’ll be covering,

  • 01: Where to download Quartz.net from
  • 02: How to install Quartz.net as a Windows service
  • 03: Test the Quartz.net Installation

If you are new to Quartz.net I would recommend reading the blog post on a brief introduction to Quartz.net.

01 – Where to download Quartz.net?

     image

  • Currently version  Quartz.Net 2.0.1 is the recommended download version.

02 – How to install Quartz.net as a Windows service

        SNAGHTML3a596c9a

  1. Go to the download location and unzip the Quartz.net package
  2. Navigate to the folder Quartz.Net \ Server \ bin – This is where you will find different .net version installers of the quartz.net packages. For example in the screen shot above, you can see the Quartz.net .net 3.5 and .net 4 packages.
  3. Open up the Quartz.net .net 4.0 folder, this folder contains the files you need to install Quartz.net as a windows service
  4. Copy the contents of the folder Downloads\Quartz.NET-2.0.1\server\bin\4.0 to the folder %program files%\Quartz.net

    SNAGHTML3a600e06 

    5. Open up a new CMD as an administrator and run the below command to install Quartz.net as a windows service

    /> Quartz.Server.exe install

    SNAGHTML3a63debd

    6. How do I know that Quartz.Net service has installed as a Windows service?

    Go to run prompt and type ‘services.msc’ you should now see all the windows services installed on your machine. Navigate down to look for Quartz.Net. The service installs itself as an automatic startup Type and log on as ‘Local System’. You can easily change this to your prefer account that you would like to run the service as.

    SNAGHTML3a66fb22

    If you wanted to name the Quartz service something else then that’s also possible…

    image

    Can I change the default display name of the quartz.net windows service?

    Yes, you can! Navigate to C:\Program Files (x86)\Quartz.Net\ and open up the config file ‘quartz.config’

    - You can change the instance name

    - You can change the default thread count of 10

    - The port that the service listens to (by default this is port 555)

    SNAGHTML3a6dd4be

    A blog post on more configuration details can be found here.

03 – Test Quartz.Net windows service installation

So, I have installed Quartz.Net as a windows service, how do I test whether my installation has been successful.

Open up cmd as an administrator and run the below command,

C:\Program Files (x86)\Quartz.Net> Quartz.Server.exe –i

image

Since by default the Quartz.net windows service writes INFO level diagnostics (this can be changed from Quartz.Server.exe.config) you should see the service information show up on the console. For instance in the example above I can see that the service is running in a NON CLUSTERED mode, its currently not started and is currently in standby mode with 0 number of jobs executed so far…

This was second in the series of posts on enterprise scheduling using Quartz.net, in the next post I’ll be covering how to run your first scheduled task using Quartz.net windows service. Thank you for taking the time out and reading this blog post. If you enjoyed the post, remember to subscribe to http://feeds.feedburner.com/TarunArora. Stay tuned!

© Geeks with Blogs or respective owner