Skip to content

Instantly share code, notes, and snippets.

@manh-dan
Forked from thomasjsn/laravel-queue.service
Created May 5, 2021 06:37
Show Gist options
  • Select an option

  • Save manh-dan/2d6c44d12ec49b8b827e373ea6b58d04 to your computer and use it in GitHub Desktop.

Select an option

Save manh-dan/2d6c44d12ec49b8b827e373ea6b58d04 to your computer and use it in GitHub Desktop.

Revisions

  1. Thomas Jensen revised this gist May 28, 2016. No changes.
  2. Thomas Jensen renamed this gist May 21, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. Thomas Jensen created this gist May 21, 2016.
    19 changes: 19 additions & 0 deletions queue.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # 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