I'm trying to get this working right. Just a heads up I'm using Redis in a docker container. I am trying to setup the queue worker using the SystemD method shown above. I have tried User=root, User=www-data I've tried multiple times even moving the StartLimitIntervalSec=0 from [Unit] to [Service] and back. Tried multiple different variations and I keep getting (code=exited, status=1/FAILURE) Not sure what else to do.
[Unit]
Description=flarum-queue
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
User=www-data
WorkingDirectory=/var/www/vhosts/diablosanctuary.xyz/httpdocs
ExecStart=/usr/bin/php flarum queue:work
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
Any help would be greatly appreciated.