Every time I reboot my Ubuntu, my Postgres never gets started automatically and the /var/run/postgresql directory is never there on reboot. I have to manually create it and set the owner to postgre in order to successfully start Postgres every time I reboot. What is the real issue here?

  • 2
    Hard to tell because you haven't given any information on how you installed it. – Peter Eisentraut Jun 3 '11 at 20:58

/var/run/ on ubuntu by default use tmpfs, so after reboot all necessary file/dir should be created again using init.d script

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.