<commit_before>#Rhizomatica cron jobs
PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn
  
# m  h    dom mon dow   user command

#SMS reminders for users
  0  8    1   *   *     root /usr/bin/python /var/rhizomatica/rccn/rsc.py notice
  0  8    3   *   *     root /usr/bin/python /var/rhizomatica/rccn/rsc.py reminder
  0  21   7   *   *     root /usr/bin/python /var/rhizomatica/rccn/rsc.py deactivate

#SMS reminder for admin
  0  */5  *   *   *     root /var/rhizomatica/bin/check_account_balance.sh

#SMS cleanup
  0  3    *   *   *     root /var/rhizomatica/bin/sms_cleanup.sh

#RRDtools graphs
*/5  *    *   *   *     root /var/rhizomatica/bin/platform_update_rrd.sh
*/5  *    *   *   *     root /var/rhizomatica/bin/network_update_rrd.sh
*/1  *    *   *   *     root /var/rhizomatica/bin/network_update60.sh

#Bind check between OpenBSC and Kannel (disabled)
# */10    *   *   *  *  root /home/rhizomatica/bin/bind_check.sh

#Roaming jobs
*/30 *    *   *   *     root timeout 10m /usr/bin/python /var/rhizomatica/rccn/rrc.py > /dev/null 2>&1 ; timeout 15m /usr/bin/python /var/rhizomatica/rccn/rhs.py > /dev/null 2>&1
10 */2    *   *   *     root /usr/bin/python /var/rhizomatica/rccn/push.py recent 1

#Cleanup inactive users
  0  5    *   *   *     root /usr/bin/python /var/rhizomatica/rccn/rip.py > /dev/null 2>&1

<% if @bts_type == 'litecel' -%>
# amplifier monitoring
*/5  *    *   *   *     root /home/rhizomatica/bin/monitor_amp.sh > /dev/null 2>&1
<% end -%>

# RAPI monitoring
*/5  *    *   *   *     root /home/rhizomatica/bin/monitor_rapi.sh > /dev/null 2>&1

#FreeSWITCH monitoring
*/10 *    *   *   *     root /home/rhizomatica/bin/monitor_freeswitch.sh > /dev/null 2>&1

#Billing
  0 10    *   *   *     root [ $(date +'\%d' -d tomorrow) -eq 1 ] && /var/rhizomatica/bin/active_subscribers.sh

#Restart osmo-nitb every 6 hours (This wasn't working anyway. If it is needed, do something more elegant!)
#  0 */6   *   *   *     root /usr/bin/sv restart osmo-nitb 2>&1 > /dev/null

#PostgreSQL backup
  0  3    *   *   *     postgres /home/rhizomatica/bin/pg_backup_rotated.sh

#SQLite backup
  0  4    *   *   *     root /home/rhizomatica/bin/sqlite_backup_rotated.sh
<commit_msg>Mods to cron for roaming jobs<commit_after>#Rhizomatica cron jobs
PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn
  
# m  h    dom mon dow   user command

#SMS reminders for users
  0  8    1   *   *     root /usr/bin/python /var/rhizomatica/rccn/rsc.py notice
  0  8    3   *   *     root /usr/bin/python /var/rhizomatica/rccn/rsc.py reminder
  0  21   7   *   *     root /usr/bin/python /var/rhizomatica/rccn/rsc.py deactivate

#SMS reminder for admin
  0  */5  *   *   *     root /var/rhizomatica/bin/check_account_balance.sh

#SMS cleanup
  0  3    *   *   *     root /var/rhizomatica/bin/sms_cleanup.sh

#RRDtools graphs
*/5  *    *   *   *     root /var/rhizomatica/bin/platform_update_rrd.sh
*/5  *    *   *   *     root /var/rhizomatica/bin/network_update_rrd.sh
*/1  *    *   *   *     root /var/rhizomatica/bin/network_update60.sh

#Bind check between OpenBSC and Kannel (disabled)
# */10    *   *   *  *  root /home/rhizomatica/bin/bind_check.sh

#Roaming jobs
*/15 *    *   *   *     root timeout 10m /usr/bin/python /var/rhizomatica/rccn/rrc.py > /dev/null 2>&1 ; timeout 15m /usr/bin/python /var/rhizomatica/rccn/rhs.py > /dev/null 2>&1
*/30 *    *   *   *     root /usr/bin/python /var/rhizomatica/rccn/push.py -c -r1 > /dev/null 2>&1
#Do a full push once a week, random minute
<%= scope.function_fqdn_rand([59]) %> 3    *   *   0     root /usr/bin/python /var/rhizomatica/rccn/push.py

#Cleanup inactive users
  0  5    *   *   *     root /usr/bin/python /var/rhizomatica/rccn/rip.py > /dev/null 2>&1

<% if @bts_type == 'litecel' -%>
# amplifier monitoring
*/5  *    *   *   *     root /home/rhizomatica/bin/monitor_amp.sh > /dev/null 2>&1
<% end -%>

# RAPI monitoring
*/5  *    *   *   *     root /home/rhizomatica/bin/monitor_rapi.sh > /dev/null 2>&1

#FreeSWITCH monitoring
*/10 *    *   *   *     root /home/rhizomatica/bin/monitor_freeswitch.sh > /dev/null 2>&1

#Billing
  0 10    *   *   *     root [ $(date +'\%d' -d tomorrow) -eq 1 ] && /var/rhizomatica/bin/active_subscribers.sh

#Restart osmo-nitb every 6 hours (This wasn't working anyway. If it is needed, do something more elegant!)
#  0 */6   *   *   *     root /usr/bin/sv restart osmo-nitb 2>&1 > /dev/null

#PostgreSQL backup
  0  3    *   *   *     postgres /home/rhizomatica/bin/pg_backup_rotated.sh

#SQLite backup
  0  4    *   *   *     root /home/rhizomatica/bin/sqlite_backup_rotated.sh

{'fraction_non_alphanumeric': 0.1399825021872266, 'fraction_numerical': 0.02821522309711286, 'mean_word_length': 2.271101573676681, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6035', 'n_tokens_mistral': 1985, 'n_tokens_neox': 1870, 'n_words': 375}