Configure server restart times
Posted by Sven Koester, Last modified by Josh Brewer on 08 March 2018 20:10
|
|
PresSTORE application server requires periodical restarts in order to do some resource cleanup tasks. The server restart is performed at predefined intervals and is activated only if there are no users logged-in and no jobs running. Presstore checks for running jobs every 10 minutes. Therefore, a time window of approx. 15 minutes during which no Presstore jobs are running must be created in order for the scheduled Presstore restart to take place. By default, server will attempt to restart every day between 04:00 and 07:00 hours. Starting with 1.5.0 release you can override this behaviour. To do this, you need to -> setup server-wide options <- controlling the restart time schedule: ns_section ns/server/$server/module/utility The "restartCron" parameter and its value encodes the schedule as follows: day1-day2 time1-time2 ... dayX-dayY timeX-timeY
Example: ns_section ns/server/$server/module/utility In this example, server will attempt to restart itself on following days/times: Sunday to Monday between 04:00 and 08:00 If not otherwise specified, the restartCron has the default format of * 04:00-07:00 so server restart will be attempted every day between 04:00 and 07:00 hours. After making the changes and restarting the server, look into the server log and you will be able to locate following log entries (example below is for the default restart schdedule): [11/Dec/2004:16:58:21][9483.10][-ns_job_0-] Notice: Attempt restart on Sun, 04:00 - 07:00 | |
|
I've been trying to do the procedure that you describe, but server shows me a message "ns_section: command not found"
Some help?