Navigation:  Applications running as a Service > ServiceScheduler >

Configuration

Top  Previous  Next

The ServiceScheduler service is configured with the configuration file servicescheduler.ini which has to be created in the %SYSTEMROOT% directory (usually c:\winnt or c:\windows).

 

Lines starting with a hash # or and exclamation mark ! will be treated as comments and not interpreted. The syntax for the actual instructions is as follows:

 

[Service Name],[Service Action],[Time],[Mon.Tue.Wed...Sun]

 

Service Name

The name of the service. This is not the display name of the service, but the real name of the service

 

Service Action

The action you want to be taken. Actions include:

 

start
stop
pause
continue

 

Time

The time at which the action should be performed. Note that the European time format is required, for example:

 

02:50

11:35

15:30

21:00

 

Weekdays

The weekdays on which the action should be performed. You may specify between one and seven weekdays. Weekdays include:

 

Mon
Tue
Wed
Thu
Fri
Sat
Sun

 

Multiple weekdays have to separated by a dot (.). Please see below for configuration examples.

 

alert_or_warning_1_24_n_g

Important: You will need to stop and restart the ServiceScheduler service whenever you make changes to the configuration file servicescheduler.ini.

 

Configuration Examples

 

Example 1: Stop the EventSentry service weekdays at 10pm, and start the service again at 10:15pm

 

EventSentry,stop,22:00,Mon.Tue.Wed.Thu.Fri

EventSentry,start,22:15,Mon.Tue.Wed.Thu.Fri

 

Example 2: Stop the MS SQL Server service daily at 3am and restart it again at 5am

 

MSSQLServer,stop,03:00,Mon.Tue.Wed.Thu.Fri.Sat.Sun

MSSQLServer,start,05:00,Mon.Tue.Wed.Thu.Fri.Sat.Sun

 

alert_or_warning_1_24_n_g

If you only know the service display name but not the service name, then open regedit.exe and navigate to HKLM\System\CurrentControlSet\Services to determine the service name.