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


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?


Well-known member
At the following location:

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

You will see the following:


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

Tracy Perry

Well-known member
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.