Easiest way of shutting down a PostgreSQL server on Ubuntu
I decided to go the route of a fresh install. So instead of trying to figure out what postgresql-command will shut down the server I used:

   sudo apt-get purge postgresql-9.1


and:

   sudo apt-get purge postgresql-9.3


A fresh install might be an easier solution to some of my other problems I had since upgrading to Ubuntu 14.04.

I found this at:


https://askubuntu.com/questions/451569/postgresql-broken-after-14-04-despite-succesful-pg-upgrade-solved