Creating a Service to Start Task Scheduler

Windows

The Prognoz Platform 9 task scheduler can be automatically started on Windows OS startup without logging in the system. The task scheduler can be installed to any local network server as a Windows OS service.

A Windows OS service is an application that automatically runs at Windows startup without a user being logged into the system.

To create a task scheduler service, enter the command line mode and run the following command:

sc.exe create PPScheduler binpath= "C:\Program Files\Foresight\Prognoz Platform 9\Scheduler.exe" start= auto

Where:

NOTE. If there is no space between the parameter (binpath or start) and its value, for example, start=auto instead of start= auto, the operation fails.

The following message is shown if the command has been successfully executed: [SC] CreateService: success.

To start the created service, run the following command:

net start PPScheduler

The following message is shown if the command has been successfully executed: The PPScheduler service is successfully launched.

To delete a task scheduler service, run the following command:

sc.exe delete PPScheduler

The following message is shown if the command has been successfully executed: [SC] DeleateService: success.

Linux

The task scheduler can be started as a service using init script for initialization system.

Example of settings in various initialization systems:

Settings for OS with the Upstart initialization system

Settings for OS with the systemd initialization system

See also:

Starting Task for Execution