Created
October 16, 2019 10:49
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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