Skip to content

Instantly share code, notes, and snippets.

@wienczny
Created June 11, 2021 10:26
Show Gist options
  • Save wienczny/84900d212a4b3021813dd3a96abaf3e6 to your computer and use it in GitHub Desktop.
Save wienczny/84900d212a4b3021813dd3a96abaf3e6 to your computer and use it in GitHub Desktop.
Magento 2 Queue Consumer with Systemd
'cron_consumers_runner' => [
'cron_run' => false
]
[Unit]
Description=Magento2 Queue Consumer (%I)
After=rabbitmq-server.service
[Service]
ExecStart=/srv/http/magento2/bin/magento queue:consumers:start --max-messages=10000 %I
Restart=always
User=www-data
Group=www-data
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment