Tutorial 6: Run HAS as Windows service (sync folders when a user is not logged on)

Task:
Synchronize folders for an organizer everyday around 6 AM. The synchronization task must be executed daily even if no one is logged on interactively.


Solution:
The task is divided into 3 steps:
Step 1: Add a job to the Service manager
Step 2: Put the created job into the HAS Service
Step 3: Run the HAS Service

Important note
Unlimited HAS Service is available in HAS with Service addon only. For more details see Order section.

Step 1: Add a job to the Service manager

  • Open the Service configuration manager window. Use the main menu item 'Job|Service configuration manager' in the HAS main window.

  • Create a new Job (see Tutorial 5: Creating a job quickly). Click the button New Job on the toolbar in the top of the window or press Ctrl+N shortcut. This opens the Job wizard window.

  • If you have created Job in the HAS main window, you can move it to Service configuration manager. Select a job in the main window and click the main menu item 'Edit|Move Job to Service'.

    Step 2: Put the created job into the HAS Service

  • Click the button Apply Changes on the toolbar in the Service configuration manager window in order to put the created job into the HAS Service jobs list. You will see statistics of changes.

    Step 3: Run the HAS Service

  • You should install HAS service. For that, click the button <Install service> at the bottom of the jobs list. You can see the installed service in the Services window - click the button <Open Services window> and locate the 'HAS service' in the window:

  • Finally, start HAS service: click the button <Start service> at the bottom of the job list. Jobs status will reflects in the jobs list.


    Note:

  • You must set a scheduler for a job in order HAS Service will be able to execute the job.
  • You can update job settings while HAS Service is running.
  • To see what HAS Service is doing click the Log Viewer button on the toolbar.

    See also:
       
    Quick start tutorial
       Service configuration manager
       HAS main window