Created
October 21, 2019 15:28
-
-
Save liamja/f6d965df56fb32e2ca1ade8852a42c20 to your computer and use it in GitHub Desktop.
Laravel Worker as a systemd Service Unit
This file contains 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
[Unit] | |
Description=Laravel Worker | |
Wants=network-online.target | |
[Service] | |
Type=simple | |
User=forge | |
ExecStart=/usr/bin/php /var/www/artisan queue:work | |
Restart=always | |
RestartSec=5 | |
StartLimitInterval=1m | |
StartLimitBurst=3 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment