Skip to main content


 

Laravel Queue Systemd service


Here a .service file to keep laravel queue worker running with systemd

---

[Unit]
Description=Laravel Queue

[Service]
Type=simple
ExecStart=/usr/bin/php /full/path/to/artisan queue:work -vv
Restart=always
User=www-data
Group=www-data


[Install]
WantedBy=multi-user.target

---

Save it as /etc/systemd/system/laravel-queue.service
Put your actual full path to artisan command
then run
# systemctl daemon-reload
# systemctl enable laravel-queue
# systemctl start laravel-queue
blog php
This entry was edited (2 years ago)