forked from SimplesIP/install_pabx
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.6 KiB
55 lines
2.6 KiB
# /etc/crontab: system-wide crontab |
|
# Unlike any other crontab you don't have to run the `crontab' |
|
# command to install the new version when you edit this file |
|
# and files in /etc/cron.d. These files also have username fields, |
|
# that none of the other crontabs do. |
|
|
|
#variáveis de ambient |
|
SHELL=/bin/sh |
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin |
|
|
|
# Example of job definition: |
|
# .---------------- minute (0 - 59) |
|
# | .------------- hour (0 - 23) |
|
# | | .---------- day of month (1 - 31) |
|
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... |
|
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat |
|
# | | | | | |
|
# * * * * * user-name command to be executed |
|
# |
|
#Servicos Auxiliares pabx |
|
0 0 * * * /var/lib/asterisk/scripts/callcenter/reload.sh |
|
0 1 * * * /hdaux/utilitarios/scripts/hd.sh |
|
*/1 * * * * /var/lib/asterisk/scripts/callcenter/queue_log.php |
|
*/1 * * * * /var/lib/asterisk/scripts/callcenter/monitora_agentes.php 180 |
|
*/1 * * * * /var/lib/asterisk/scripts/manutencaoDB/importaBilhetes.php |
|
*/1 * * * * /var/lib/asterisk/scripts/workflow/workflowSender.php |
|
0 2 * * * /var/lib/asterisk/scripts/manutencaoDB/manutencaodb.php |
|
#*/1 * * * * /var/lib/asterisk/scripts/integracao/encerraChamada.php |
|
*/1 * * * * /var/lib/asterisk/scripts/callcenter/atualizar-dacs.php |
|
*/1 * * * * sleep 15 && /var/lib/asterisk/scripts/callcenter/atualizar-dacs.php |
|
*/1 * * * * sleep 30 && /var/lib/asterisk/scripts/callcenter/atualizar-dacs.php |
|
*/1 * * * * sleep 45 && /var/lib/asterisk/scripts/callcenter/atualizar-dacs.php |
|
#Transbordo Assistido |
|
*/1 * * * * /var/lib/asterisk/agi-bin/transbordo.php |
|
*/1 * * * * sleep 15 && /var/lib/asterisk/agi-bin/transbordo.php |
|
*/1 * * * * sleep 30 && /var/lib/asterisk/agi-bin/transbordo.php |
|
*/1 * * * * sleep 45 && /var/lib/asterisk/agi-bin/transbordo.php |
|
#Backup |
|
*/10 * * * * /var/lib/asterisk/scripts/backup/backup.php |
|
#Backup - Shell |
|
0 1 * * * /hdaux/utilitarios/scripts/backup.sh config,bd |
|
#VPN |
|
*/1 * * * * /bin/sip_teste_vpn.sh |
|
#Remove Caixa Postal |
|
0 1 * * * find /var/spool/asterisk/voicemail/default/ -iname *.WAV -mtime +10 -exec rm -rf {} \; |
|
0 1 * * * find /var/spool/asterisk/voicemail/default/ -iname *.txt -mtime +10 -exec rm -rf {} \; |
|
#Limpa Maildrop |
|
0 6 * * * for i in $(ls -1 /var/spool/postfix/maildrop/) ; do /bin/rm -rf /var/spool/postfix/maildrop/$i ; done |
|
#Bloqueio - SIP |
|
*/1 * * * * /hdaux/utilitarios/scripts/bloqueia_autenticacao.sh |
|
#NTP |
|
*/15 * * * * /hdaux/utilitarios/scripts/ntp.sh |
|
#Logrotate |
|
59 23 * * * /hdaux/utilitarios/scripts/logrotate.sh --force |
|
57 23 * * * /hdaux/utilitarios/scripts/temporizador_de_dados.sh
|
|
|