1

How to create permanent Symbolic link in /tmp folder to start postgres ?

view story
linux-howto

http://stackoverflow.com – 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 sudo ln -s /tmp/.s.PGSQL.5432 /var/run/postgresql/.s.PGSQL.5432 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 I am on ubuntu 12.10 btw Thanks (HowTos)