diff options
-rw-r--r-- | INSTALL | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -3,7 +3,7 @@ Install Instructions 1. Install Python package. - # python setup.py install + # python setup.py install This will install Python module in Python path and `stats_consolidation_run` script. @@ -33,29 +33,29 @@ previously. This an example configuration file: - [main] - db_user=user - db_pass=password - db_name=database - db_dialect=postgres + [main] + db_user=user + db_pass=password + db_name=database + db_dialect=postgres - rrd_path=/var/lib/sugar-stats/rrd - log_path=/var/log - log_level=debug + rrd_path=/var/lib/sugar-stats/rrd + log_path=/var/log + log_level=debug Then copy to default configuration path: - # cp stats-consolidation.conf /etc/stats-consolidation.conf + # cp stats-consolidation.conf /etc/stats-consolidation.conf 4. Activate crontab. Check the actual path of main script. - $ which stats_consolidation_run - /usr/local/bin/stats_consolidation_run + $ which stats_consolidation_run + /usr/local/bin/stats_consolidation_run Configure the following entry on crontab with correct arguments: - 0 3 * * * root /usr/local/bin/stats_consolidation_run --db_user=user --db_pass=password db_name=database db_dialect=postgres rrd_path=/var/lib/sugar-stats/rrd log_path=/var/log + 0 3 * * * root /usr/local/bin/stats_consolidation_run --db_user=user --db_pass=password db_name=database db_dialect=postgres rrd_path=/var/lib/sugar-stats/rrd log_path=/var/log |