How to setup Supervisor in centos 7 for production

How to I setup supervisor in Centos 7 for Production so that I can use bench restart.
currently I am using bench start to run erp on production.

[frappe-bench]$ bench restart
unix:///var/run/supervisor/supervisor.sock no such file

[frappe-bench]$ sudo supervisorctl status
[sudo] password for frappe:
unix:///var/run/supervisor/supervisor.sock no such file

Please provide your suggestion.

Now, I am getting the error No Such Groups.

[root@herculesgroup frappe-bench]# bench setup production frappe
supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
Restarted supervisord
[root@herculesgroup frappe-bench]# bench setup supervisor
supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
[root@herculesgroup frappe-bench]# sudo supervisorctl reread
No config updates to processes
[root@herculesgroup frappe-bench]# sudo supervisorctl reload
Restarted supervisord
[root@herculesgroup frappe-bench]# sudo supervisorctl restart all
[root@herculesgroup frappe-bench]# bench restart
frappe: ERROR (no such group)
frappe: ERROR (no such group)
[root@herculesgroup frappe-bench]#

Any thoughts?

Hi @koshish,
please try to define the another group name and try it.

Thanks

please suggest how to define new group name?

I am kind of lost here.

try the changes in your supervisor.conf and nginx.conf.
frappe-bench replace of test_frappe-bench on another name to identify.
output look like sudo supervisorctl status
test-frappe-bench-redis:test-frappe-bench-redis-cache
test-frappe-bench-redis:test-frappe-bench-redis-queue
test-frappe-bench-redis:test-frappe-bench-redis-socketio
test-frappe-bench-workers:test-frappe-bench-frappe-async-worker
test-frappe-bench-workers:test-frappe-bench-frappe-longjob-worker
test-frappe-bench-workers:test-frappe-bench-frappe-worker
test-frappe-bench-workers:test-frappe-bench-frappe-workerbeat

Thanks

Thank for your inputs @sagar I managed to come this far by modifying the file /etc/supervisord.conf file
and the running sudo supervisord, sudo supervisorctl

[root@herculesgroup frappe-bench]# bench restart
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-workers:frappe-bench-frappe-async-worker: stopped
frappe-bench-workers:frappe-bench-frappe-longjob-worker: stopped
frappe-bench-workers:frappe-bench-frappe-workerbeat: stopped
frappe-bench-workers:frappe-bench-frappe-worker: stopped
frappe-bench-web:frappe-bench-node-socketio: ERROR (abnormal termination)
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-workers:frappe-bench-frappe-async-worker: started
frappe-bench-workers:frappe-bench-frappe-longjob-worker: started
frappe-bench-workers:frappe-bench-frappe-workerbeat: started
frappe-bench-workers:frappe-bench-frappe-worker: started

Now bench restart command looks like working
But at the browser its showing Unable to connect

While after running through bench start I am able to access in browser.

Am I missing something?