I have a cronjob
0-59/5 * * * * /usr/local/bin/phplist_FIRST -pprocessqueue > /dev/null 2>&1
which runs the following command /usr/local/bin/phplist_FIRST
#!/bin/bash
/usr/bin/php /var/www/FIRST_WEBSITE.org/public_html/lists/admin/index.php -c /var/www/FIRST_WEBSITE.org/public_html/lists/config/config.php $*
And everything works fine.
but I want to run a second phplist, so should I add and extra line to this
#!/bin/bash
/usr/bin/php /var/www/FIRST_WEBSITE.org/public_html/lists/admin/index.php -c /var/www/FIRST_WEBSITE.org/public_html/lists/config/config.php $*
/usr/bin/php /var/www/SECOND_WEBSITE.co.uk/public_html/lists/admin/index.php -c /var/www/SECOND_WEBSITE.co.uk/public_html/lists/config/config.php $*
or run a separate cron?
Its on a server which isn’t very powerful so I don’t want to end up running two phplist instances at the same time if i can help it…
At the moment I’m running a second cron at times that hopefully won’t clash with with the first.
7,19,32,44,57 * * * * /usr/local/bin/phplist_SECOND -pprocessqueue > /dev/null 2>&1
Is there a better solution?