Submitted by rezuan on Tue, 05/09/2017 - 7:02pm
# Remove LJSocket's logs.
# They consume space and should be deleted from time to time.
# Run every 30 minutes.
*/30 * * * * rm -fv ~/LJSocket/twistd.log.* >> /var/log/orwell.log 2>&1
# Copy seconds reading into the database
# Sync readings in minutes. Run every minute
* * * * * sh ~/orwell/bin/dump-sync.sh >> /var/log/orwell.log 2>&1
# Check and running orwelld/twistd program everytime
* * * * * sh ~/orwell/bin/restart.sh >> /var/log/orwell.log 2>&1
# Make sure bucardo keeps on running.
0 * * * * sudo rm -fv /var/run/bucardo/bucardo.mcp.pid >> /var/log/orwell.log 2>&1
0 * * * * sudo bucardo restart
# Garbage collector. Sync whatever that isn't synced. Run every midnight.
0 0 * * * python ~/orwell/scripts/orwell-sync-minutes-gb.py >> /var/log/orwell.log 2>&1
# Update dates_count table. Run every hour
0 * * * * psql -h 127.0.0.1 orwell -c "SELECT update_count()" >> /var/log/orwell.log 2>&1
# Update hostname's remote IP address.
# Not stable yet, keep for reference.
#*/30 * * * * ~/orwell/bin/dynip.sh >> /var/log/orwell.log 2>&1
# Manually sync the seconds data.
*/30 * * * * sh ~/orwell/bin/copy.sh schema
>> /var/log/orwell.log 2>&1
# Initiate Orwell
@reboot sh ~/orwell/bin/autossh.sh > /var/log/orwell.log 2>&1
@reboot sh ~/orwell/bin/startup.sh >> /var/log/orwell.log 2>&1
@reboot /usr/bin/nodejs /var/www/drupal/sites/all/modules/orwell/js/nodejs-client.js >> /var/log/orwell.log 2>&1