ubuntu restart postgres 10 code example
Example: stpop start psql server
sudo service postgresql start
sudo service postgresql stop
sudo service postgresql restart
sudo service postgresql start
sudo service postgresql stop
sudo service postgresql restart