the command
directive requires an executable command which supervisor runs.
You say you want to run
gunicorn wsgi:application
then set your configuration like so:
[program:gunicorn_process]
command=gunicorn wsgi:application
directory=/srv/domain
user=root
Two things to take into account:
You should not run your wsgi app as root. There's a potential security issue right there. Create a user which has no extra privileges which is only meant to run your web applications and servers.
You might want to change the
command
directive to include the full path ofgunicorn
executable. Do awhich gunicorn
to find out where it exists. For example:command=/usr/bin/gunicorn wsgi:application