Dificuldades com o CRONTAB

1. Dificuldades com o CRONTAB

Jeferson Pauwels
jpauwels

(usa Ubuntu)

Enviado em 13/08/2019 - 11:50h

Olá meus amigos,

estou com um problema tenho um arquivo crontab que tem varias atividades porem hoje ele parou de executar essas atividades, já revi os codigos do crontab que são essas;

# /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.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
*/15 1 * * * root /usr/local/bin/esl-restart.sh
*/2 * * * * root /usr/local/bin/kci/confirmacao_de.sh > /dev/null 2>&1
*/2 * * * * root /usr/local/bin/kci/confirmacao_ds.sh > /dev/null 2>&1
*/2 * * * * root /usr/local/bin/kci/mov_estoque_rcq.sh > /dev/null 2>&1
0 */1 * * * root /usr/local/bin/kci/posicao_estoque.sh > /dev/null 2>&1
28 20 * * * root /usr/local/bin/kci/posicao_estoque.sh > /dev/null 2>&1
30 20 * * * root /usr/local/bin/kci/posicao_estoque_mv.sh > /dev/null 2>&1
#00 22 * * * root /usr/local/bin/kci/previsaosaida_delete.sh > /dev/null 2>&1
*/5 * * * * root /usr/local/bin/kci/testesaida.php > /dev/null 2>&1
*/5 * * * * root /usr/local/bin/kci_rj/previsaosaida.php > /dev/null 2>&1
30 20 * * * root /backups/scripts/executar_backup.sh
#0 6 * * * root reboot

-----
Eu restartei o serviço usando o comando;

service cron stop
service cron start
e usei tambem o
service cron restart

---
Depois rodei um comando para ver os logs do Crontab o resulta é o seguinte (grep cron /var/log/syslog);

Aug 13 10:07:01 log-sjc-srv-gw cron[29504]: (*system*) RELOAD (/etc/crontab)
Aug 13 10:08:01 log-sjc-srv-gw cron[29504]: (*system*) RELOAD (/etc/crontab)
Aug 13 10:14:06 log-sjc-srv-gw cron[30643]: (CRON) INFO (pidfile fd = 3)
Aug 13 10:14:06 log-sjc-srv-gw cron[30644]: (CRON) STARTUP (fork ok)
Aug 13 10:14:06 log-sjc-srv-gw cron[30644]: (CRON) INFO (Skipping @reboot jobs - - not system startup)
Aug 13 10:17:01 log-sjc-srv-gw CRON[30771]: (root) CMD ( cd / && run-parts --r eport /etc/cron.hourly)
Aug 13 10:36:32 log-sjc-srv-gw cron[31331]: (CRON) INFO (pidfile fd = 3)
Aug 13 10:36:32 log-sjc-srv-gw cron[31332]: (CRON) STARTUP (fork ok)
Aug 13 10:36:32 log-sjc-srv-gw cron[31332]: (CRON) INFO (Skipping @reboot jobs - - not system startup)
Aug 13 11:17:01 log-sjc-srv-gw CRON[32489]: (root) CMD ( cd / && run-parts --r eport /etc/cron.hourly)


---

E não esta executando as atividades não sei oque posso fazer para fazer ele voltar a funcionar, alguém já passou isso ou sabe como resolver?






  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts