0 8 * * * /usr/local/bin/npm --prefix /root/myscript run start > /root/logs
I can see at the log file that this script STARTS execution at 8am.
Although, if the script does exceed more than 60 seconds running: it stops.
I know it has nothing to do with the script because it has proper error handling that would get outputted to logs: which is not the case.
The script simply stops at 8:01am.
It seems like crontab stops it, just like when we hit CTRL+C
.
journalctl
) for relevant messages. Does npm have a verbose option? If yes, use it.env -i /usr/local/bin/npm …
from the shell, that might help narrowing it down.