title: unix:///var/run/supervisor.sock refused connection during restarting supervisor
body: <p>When I created a new <code>.conf</code> file inside <code>/etc/supervisor/conf.d/</code> and tried to start this program it was showing some errors (fatal error) and restarting frequently by itself. Then I ran the command <code>sudo service supervisor restart</code> but now the supervisor also stopped and couldn't be restarted it. During solving my error the <code>nginx</code> server also got stuck also. </p>
  
  <p>After spending a vast time I recovered it Alhamdulillah and writing the solution in the answer section.</p>
  
  <p><strong>Don't trust the solution entirely for your problem. Your problem may belong to another issues as well.</strong></p>