2022
...
The cron is a long-running process that executes commands at specific dates and times. You can use this to schedule activities, either as one-time events or as recurring tasks.
Cron determines how often and when the cron job is going to run.
...
Info | ||
---|---|---|
| ||
* * * * * [command] |
...
Info | ||
---|---|---|
| ||
0 0 2 * * [command] |
Info | ||
---|---|---|
| ||
0 * * * 1 [command] |
The below commands need to add in the system.properties to execute the cron- functionality.
Info | ||
---|---|---|
| ||
log.maxcount= |
The above commands need to add in the system.properties to execute the cron- log file cleaner.
Example:Example:
Default Auto log deletion parameters (To do the custom changes then change the parameters in system.properties)
log.maxcount= ( DBSync default log.maxcount=6000, As based on the above explanation please follow the timing syntax to add the max count- (i.e To limit the count of the logs generated)
log.cleaner.cron = (It is based on the user's requirements, please follow the timing syntax to clean all the successful log files one by one as per the given specified parameter for log.cleaner.cron).
Note: Now you can change the above properties like log.maxcount and log.cleaner.cron for further changes in the profile for the log screen.
Users can change these 2 properties to go to the system.properties and make the changes.
Example: See the details below:
...
...
...