title: How to create permanent Symbolic link in /tmp folder to start postgres?
body: <p>I am running postgresql but with every system reboot, the symbolic link /tmp/.s.PGSQL.5432 gets deleted so I have to manually create it through </p>
  
  <pre><code>sudo ln -s /tmp/.s.PGSQL.5432 /var/run/postgresql/.s.PGSQL.5432
  </code></pre>
  
  <p>and only then postgres start. Is there anyway I can automate this (say the command running at the time system starts) ? also why this /tmp link for postgres ? I am sure there is a better solution then to keep on creating the /tmp link after every reboot</p>
  
  <p>I am on ubuntu 12.10 btw</p>
  
  <p>EDIT - the code do look in reverse order but it is working now, see <a href="https://askubuntu.com/a/213462">https://askubuntu.com/a/213462</a> too</p>
  
  <p>Thanks</p>