Skip to content

Instantly share code, notes, and snippets.

@budiantoip
Last active July 10, 2025 03:48
Show Gist options
  • Save budiantoip/b842807d18be48ec00501d8283202986 to your computer and use it in GitHub Desktop.
Save budiantoip/b842807d18be48ec00501d8283202986 to your computer and use it in GitHub Desktop.
Supervisor Setup

References :

Supervisor Setup

sudo vim /etc/supervisor/conf.d/laravel-app.ini

# and copy and paste these lines, then save it
[program:laravel-app-worker]
command=php /home/laravel-app/public_html/pheanstalk.php
autostart=true
autorestart=true
user=bob
redirect_stderr=true
stdout_logfile=/home/laravel-app/public_html/logs/worker.log

# Update supervisor
supervisorctl reread
supervisorctl update

# restart the supervisor service
service supervisor restart

# Check worker status
supervisorctl status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment