Install Supervisor For A PHP Script

Add A New Supervisor Config File

Here, I have a Symfony3 project under the /www directory, I hope the supervisor can start running a php script by command php bin/console update:goods
if supervisor startup.
numprocs means it will start one process and stopsignal means that it will send a quit signal to this php process before supervisor stop
nodaemon under [supervisord] is very helpful if you use the docker to manager your container.

Check The PHP running status

or you can using this commands to control these process

Something wrong i meet

After first time i start the supervisor service. I saw these errors in my project error.
It means that the user (user=daemon) in supervisor config file can not access the /www directory.
So you can update the config user=root to fix this problem