XF 2.2 How to properly set up server-based job trigger?

yianss

New member
I have an addon that syncs discord roles and I want to make sure that it is always running every minute regardless of site activity. I do not understand how to properly set up the server-based trigger. Can someone explain?
 
At the following location:

Admin control panel -> Setup -> Options -> System and Performance -> Job run trigger

You will see the following:

1644724355275.webp

The Server based trigger will only work if you setup a cron job on your server. In cPanel I use the following:

/usr/local/bin/php /home/southbay/public_html/forums222/cmd.php xf:run-jobs >/dev/null
 
One question What is the >/dev/null used for?

Or it could have been easily answered as the bitbucket. When you direct any output to /dev/null it simply directs it to no place. It's not written to a file or generates any output that is recorded. It is a way to make sure that certain processes do not display output to the screen mainly, either errors or standard screen display when it runs.
Sometimes you will see /dev/null 2>&1 used. That kills all standard output.
 
Top Bottom