Answer the question
In order to leave comments, you need to log in
Why is Crontab skipping a task?
In crontab -e
*/5 * * * * /usr/local/bin/pm2 restart all
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
Answer the question
In order to leave comments, you need to log in
Most likely, cron doesn't skip it, but for some reason the task is not executed.
Place the task in a script, and already write this script in crontab. Now you can add something like
date >> my_log.txt
echo ура! скрипт запустился! >> my_log.txt
...and look in the log to see if there really were gaps.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question