Install Quartz.Net as a windows service and Test installation

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 going through,

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 article is part of the GWB Archives. Original Author: Tarun Arora [Microsoft MVP]

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.