Skip to content

Instantly share code, notes, and snippets.

@Sharifur
Last active May 25, 2024 06:20
Show Gist options
  • Save Sharifur/32c16221234abe8c089f6e4e13cb0a36 to your computer and use it in GitHub Desktop.
Save Sharifur/32c16221234abe8c089f6e4e13cb0a36 to your computer and use it in GitHub Desktop.
configure supervisor in alma linux
[program:horizon]
process_name=%(program_name)s
command=php /home/path_to_the_script/artisan horizon
autostart=true
autorestart=true
user=root
redirect_stderr=true
stdout_logfile=/home/path_to_the_script/horizon.log
stopwaitsecs=3600
reference https://docs.faveohelpdesk.com/docs/installation/providers/enterprise/alma-redis/
#as image
https://i.ibb.co/hWtqwHS/image.png
#folder of supervisor config files
nano /etc/supervisord.d/
#command to update supervisor after change anything
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start horizon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment