I am running the following command in a loop (without notable memory leaks) as a cPanel user:
nohup php ~/www/app/console.php run clean 1> /dev/null 2> ~/www/logs/run_clean.log &
But when I exit SSH, the command always stops. When I do a htop
as root, I can't see the process running.
If I don't exit the SSH for days, for instance, the process will continue running fine!
What is wrong? Is not expected for the command I have posted to run in the background without interruption?