Running a script erring out with Segmentation Fault using Supervisor

Intro To Supervisor

pip install supervisor
> supervisord
> /etc/supervisor/
> /etc/supervisor/conf.d/
; supervisor config file[unix_http_server]file=/var/run/supervisor.sock   ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/ ; (supervisord pidfile;default
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
[rpcinterface:supervisor]supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface[supervisorctl]serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket[include]files = /etc/supervisor/conf.d/*.conf

Putting the pieces together

command=php /Users/yasoobhaider/Documents/code/solr/indexing_script.php
> sudo supervisorctl start doc_indexer




I code, among other things.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yasoob Haider

Yasoob Haider

I code, among other things.

More from Medium

How To Install PHP On Windows OS — 6 Steps To Follow

How To Install PHP On Windows OS

Retrieve random documents from Meilisearch

A simple PHP site (4/?)— Routing

How to add a custom virtual host on Windows 11