NickSimkin
4/22/2017 - 7:52 PM

Laravel queue worker using systemd.

Laravel queue worker using systemd.

# Laravel queue worker using systemd
# ----------------------------------
#
# /lib/systemd/system/queue.service
#
# run this command to enable service:
# systemctl enable queue.service

[Unit]
Description=Laravel queue worker

[Service]
User=www-data
Group=www-data
Restart=on-failure
ExecStart=/usr/bin/php /path/to/laravel/artisan queue:work --daemon --env=production

[Install]
WantedBy=multi-user.target