restart postgres service centods code example
Example 1: how to restart psql in linux
sudo service postgresql restart
# To restart the postgresql service
Example 2: restart postgresql
sudo /etc/init.d/postgresql restart
sudo service postgresql restart
# To restart the postgresql service
sudo /etc/init.d/postgresql restart