A service can be automatically restarted at specific intervals and on specific dates.
To enable this feature, add a schedule entry to the service definition:
The schedule becomes effective as soon as the service is active.
Services can be activated and de-activated from command-line:
Scheduling is based on cron-like rules, as implemented by croner:
The internal scheduler can be queried from the command line using the following command:
This command displays the currently registered schedules and their next planned execution times, which can be useful for troubleshooting scheduling issues or verifying cron expressions.
Here's an example on how to create a scheduled service, calling date every second:
