CRONJOB Changes:
1) add timeout to rhs.py 2) remove rip.py 3) Add run of scripts to check for fs/nitb restart
This commit is contained in:
parent
e753ffb725
commit
63475eebe9
1 changed files with 7 additions and 2 deletions
|
@ -3,10 +3,12 @@ PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn
|
||||||
|
|
||||||
# m h dom mon dow user command
|
# m h dom mon dow user command
|
||||||
|
|
||||||
|
<% if @charge_scheme != 'nosub' -%>
|
||||||
#SMS reminders for users
|
#SMS reminders for users
|
||||||
0 8 1 * * root /usr/bin/python /var/rhizomatica/rccn/rsc.py notice
|
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 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
|
0 21 7 * * root /usr/bin/python /var/rhizomatica/rccn/rsc.py deactivate
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
#SMS reminder for admin
|
#SMS reminder for admin
|
||||||
0 */5 * * * root /var/rhizomatica/bin/check_account_balance.sh
|
0 */5 * * * root /var/rhizomatica/bin/check_account_balance.sh
|
||||||
|
@ -23,7 +25,7 @@ PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn
|
||||||
# */10 * * * * root /home/rhizomatica/bin/bind_check.sh
|
# */10 * * * * root /home/rhizomatica/bin/bind_check.sh
|
||||||
|
|
||||||
#Roaming jobs
|
#Roaming jobs
|
||||||
*/10 * * * * root timeout 10m /usr/bin/python /var/rhizomatica/rccn/rrc.py -c -f > /dev/null 2>&1 ; /usr/bin/python /var/rhizomatica/rccn/rhs.py -c > /dev/null 2>&1
|
*/10 * * * * root timeout 10m /usr/bin/python /var/rhizomatica/rccn/rrc.py -c -f > /dev/null 2>&1 ; timeout 10m /usr/bin/python /var/rhizomatica/rccn/rhs.py -c > /dev/null 2>&1
|
||||||
#*/15 * * * * root /usr/bin/python /var/rhizomatica/rccn/rhs.py > /dev/null 2>&1
|
#*/15 * * * * root /usr/bin/python /var/rhizomatica/rccn/rhs.py > /dev/null 2>&1
|
||||||
|
|
||||||
# Push Subscribers created in the last hour, every 30 mins
|
# Push Subscribers created in the last hour, every 30 mins
|
||||||
|
@ -39,7 +41,7 @@ PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn
|
||||||
<%= scope.function_fqdn_rand([59]) %> 4 * * 0 root /usr/bin/python /var/rhizomatica/rccn/rrc.py -p
|
<%= scope.function_fqdn_rand([59]) %> 4 * * 0 root /usr/bin/python /var/rhizomatica/rccn/rrc.py -p
|
||||||
|
|
||||||
#Cleanup inactive users
|
#Cleanup inactive users
|
||||||
0 5 * * * root /usr/bin/python /var/rhizomatica/rccn/rip.py > /dev/null 2>&1
|
# 0 5 * * * root /usr/bin/python /var/rhizomatica/rccn/rip.py > /dev/null 2>&1
|
||||||
|
|
||||||
<% if @bts_type == 'litecel' -%>
|
<% if @bts_type == 'litecel' -%>
|
||||||
# amplifier monitoring
|
# amplifier monitoring
|
||||||
|
@ -58,6 +60,9 @@ PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn
|
||||||
#Restart osmo-nitb every 6 hours (This wasn't working anyway. If it is needed, do something more elegant!)
|
#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
|
# 0 */6 * * * root /usr/bin/sv restart osmo-nitb 2>&1 > /dev/null
|
||||||
|
|
||||||
|
# Check if FS or NTIB needs restart
|
||||||
|
30 3 * * * root /home/rhizomatica/bin/check_dirty.sh
|
||||||
|
|
||||||
#PostgreSQL backup
|
#PostgreSQL backup
|
||||||
0 3 * * * postgres /home/rhizomatica/bin/pg_backup_rotated.sh
|
0 3 * * * postgres /home/rhizomatica/bin/pg_backup_rotated.sh
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue