Go to main content

Developing System Services in Oracle® Solaris 11.3

Exit Print View

Updated: September 2018
 
 

Scheduled Services

A scheduled service is a type of periodic service, described in Creating a Service to Run Periodically. Each invocation of a periodic service instance start method occurs at a time relative to the last invocation. Each invocation of a scheduled service instance start method occurs at a specific absolute time. Use a scheduled service when the task must run at a certain time, such as during off-peak hours.

A scheduled service instance is managed by the periodic restarter service, svc:/system/svc/periodic-restarter. The start method scheduling parameters for a scheduled service instance are defined in a scheduled_method element and zero or more schedule property groups in the service manifest. The start method scheduling parameters are stored in property groups of type schedule in the service configuration repository. The periodic restarter combines the values of each property of each property group of type schedule to schedule invocations of the start method of the scheduled service instance.