diff options
author | Miguel Gonzalez <migonzalvar@activitycentral.com> | 2013-08-09 12:08:25 (GMT) |
---|---|---|
committer | Miguel Gonzalez <migonzalvar@activitycentral.com> | 2013-08-09 12:08:25 (GMT) |
commit | 6a8ab9fdedc7f38876286014fa0a73bb1dc3497d (patch) | |
tree | f51fe2945eb2716e0e105ca76915cd6802585c19 | |
parent | 340e37dfbfb2820cb546e6f49c822d69387facf1 (diff) |
Tab to spacessqlalchemy-v2
-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 |