Restart Postgres Ubuntu
sudo service postgresql restart
Upset Unicorn
sudo service postgresql restart
sudo service postgresql restart
# To restart the postgresql service
sudo service postgresql restart