Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BagriyDmitriy/2eb660813f07834381d926d3fa3c1117 to your computer and use it in GitHub Desktop.
Save BagriyDmitriy/2eb660813f07834381d926d3fa3c1117 to your computer and use it in GitHub Desktop.
/etc/systemd/system/laravel-queues-high-and-default.service - systemd service config for centos 7 (laravel-queue)
# Laravel queue worker using systemd
# ----------------------------------
#
# /etc/systemd/system/laravel-queues-high-and-default.service
#
# run this command to enable service:
# systemctl daemon-reload
# systemctl enable laravel-queues-high-and-default.service
# systemctl start laravel-queues-high-and-default.service
[Unit]
Description=laravel-worker-sodevb-queues-high-and-default
[Service]
User=apache
Group=apache
Restart=always
ExecStart=/usr/bin/php /var/www/servername/html/artisan queue:work redis --queue=high,default --tries=3 --delay=5 --timeout=30 --sleep=0.05
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment