Creating a Service to Start Task Scheduler

Windows

Task scheduler of Foresight Analytics Platform 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, start the command line under administrator and run the following command:

sc.exe create FPScheduler binpath= "C:\Program Files\Foresight\Foresight Analytics Platform 9.2\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 FPScheduler

The following message is displayed if the command has been successfully executed: The FPScheduler service is successfully launched.

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

sc.exe delete FPScheduler

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 Linux 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