Most of our customers run on maxcluster servers and therefore we use supervisord, which is brought by the setup. But one of our newer clients brought their own hosting and there was no supervisord, but systemd. So it was time to fiddle out, how to run Shopware queue workers and scheduled task with it.
supervisord and systemd are pretty similar – at least from the point of view of a PHP and Shopware developer ? . First we setup services, then we combine them into a group (it seems to be called „target“ in systemd ?) and voilá, done.
Setup services
From this point on, everything I do is via a root account!
If you want to understand the details, I can recommend the blog articles by Benjamin Morel and Steven Rombauts who helped me a lot to make this work. Especially what the different lines do and why I need an @ in one of the filenames.
Systemd configurations living in /etc/systemd/system, so we create the two services there.