add option to check pcu status as part of the condition for marking a site as
[monitor.git] / monitor-server.init
index 6a43fda..8c26416 100644 (file)
@@ -44,6 +44,7 @@ function check_monitor_schema_and_data()
 {
        # NOTE: call create_all() to setup the database from the info model.
        python -c "from monitor.database.info.model import *; from elixir import create_all; create_all()"
+       $MONITORPATH/init-bootman-sequence.py
 }
 
 function check_monitor_conf ()
@@ -111,6 +112,7 @@ cachetime=60
 [commandline]
 cachecalls=True
 embedded=False
+zabbix_enabled=False
 
 echo=False
 debug=False
@@ -170,6 +172,8 @@ function start_tg_server ()
 {
        stop_tg_server
        pushd ${MONITORPATH}/web/MonitorWeb/
+       mkdir -p /var/log/monitor/monitorweb/
+       cp /var/log/monitorweb.log /var/lib/monitor/monitorweb/`date +%Y-%m-%d-%H-%M`-monitorweb.log
        ./start-monitorweb.py ${MONITORPATH}/web/MonitorWeb/prod.cfg &> /var/log/monitorweb.log &
        popd
 }