postgres service suddenly not working after the computer crashed while working
When I faced this message, I checked the postgresstartup.log, it showed that the data directory was having permissions as 777,After I changed to 700 , the postgresql started working

sudo su - postgres

chmod 700 -R &lt;postgresql_Data_Directory&gt;


exit

/etc/init.d/postgresql start

/etc/init.d/postgresql status