1

I am using laravel to run my cron.The problem is it that all the commands are running twice. When i add ps -A in my terminal it shows two enteries.

  964 ?        00:04:56 cron
25010 ?        00:00:00 cron

I have this entry in laravel :

* * * * * php /var/www/war-circle-web/artisan schedule:run >> /dev/null 2>&1

What could be the problem?

Sameer Shaikh
  • 7,564
  • 2
  • 17
  • 32

1 Answers1

0

First you need to check for what users cron runs

sudo ls /var/spool/cron/crontabs

you'll see few names or one - it depends

user_name_1 user_name_2

Then you have options for: 1) update your own cron

crontab -e

2) remove you cron

crontab -r -u user_name

3) remove cron for another user

sudo crontab -r -u user_name

4) update cron for specific user_name

sudo crontab -e -u user_name