Skip to content

Instantly share code, notes, and snippets.

@valkzer
Last active January 16, 2025 17:10
Show Gist options
  • Save valkzer/a5d5b6087cf270ab1afb722211874333 to your computer and use it in GitHub Desktop.
Save valkzer/a5d5b6087cf270ab1afb722211874333 to your computer and use it in GitHub Desktop.
Quick installation and configuration of supervisor on Fedora 23.

#Supervisor Installation on fedora 23

  • dnf install supervisor

  • echo_supervisord_conf > /etc/supervisord.conf

  • nano /etc/supervisord.conf

  • Add the following to the conf. file (THIS IS JUST A TEMPLATE)

      [program:laravel-worker]
      process_name=%(program_name)s_%(process_num)02d
      command=php /vhosts/myapp/artisan queue:work --queue=birthday_email --sleep=3 --tries=3 --daemon
      autostart=true
      autorestart=true
      user=apache
      numprocs=8
      redirect_stderr=true
      stdout_logfile=/vhosts/myapp/storage/logs/supervisor.log
    

This is an example of a call to put a laravel queue to work: php /vhosts/myapp/artisan queue:work --queue=birthday_email --sleep=3 --tries=3 --daemon

  • Delete the file supervisor.sock wherever it is ( find / -name supervisor.sock )
  • service supervisord start (Check if the service is running)
  • Login to supervisor with the command supervisor ( supervisorctl )
  • Within the supervisor prompt run reread and then update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment