How to reload templates without reboot

General information and solutions to the most prominent issues

Moderator: Mattk

Post Reply
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5246
Joined: Mon Oct 01, 2007 10:51 pm

How to reload templates without reboot

Post by admin » Sun Sep 07, 2014 10:46 am

In some situations it might come handy to have the templates used for ftp upload or script execution reloaded without doing a reboot (which does an automated reload on start-up) and without pressing the reload button at the web interface.

Therefore, there is a script at "http://templates.meteobridge.com/reloadtemplates.sh" that can be executed at certain time of day or in a periodically manner.

Code: Select all

#!/bin/sh
#
### reload templates; no parms
/home/meteobridge/meteobridge.cgi 'scriptload=yes&reloadftp=yes&save=yes&page=6' >/dev/null 2>/dev/null
exit 0
To have the templates every full hour reloaded you have to define a push service like this:
reloadtemplates.png
reloadtemplates.png (17.79 KiB) Viewed 3135 times

Post Reply