[For 1.8] Enable Systemd Timers to Handle MyBB Task System
(2021-07-22, 12:30 AM)OmarĀ G. Wrote: Hi, nice tutorial.

Any insight into what the code would be for running multiple MyBB instances in a single server? I suppose only the first file would need modification.

We can simply add Type=oneshot to the [Service] section of the mybb.service file, and then specify multiple ExecStart like this;
Description=MyBB Tasks

ExecStart=/usr/bin/php /var/www/mybb/task.php
ExecStart=/usr/bin/php /var/www/another_forum/task.php
ExecStart=/usr/bin/php /var/www/secret_mybb/task.php

I didn't test this though, it may be better to specify many different service/timer files instead of my idea here.

Messages In This Thread
RE: Enable Systemd Timers to Handle MyBB Task System - by kawaii - 2021-07-22, 02:31 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)