InformationConfirm, and set if necessary, the PostgreSQL runlevel on SYSV operating systems.
Setting the runlevel on a SYSV OS ensures the database service is active when a change of state occurs as in the case of a system startup, reboot, or an explicit change of runlevel by the Sys Admin.
SolutionIrrespective of package source, PostgreSQL services can be identified because it typically includes the text string 'postgresql'. Correct installs automatically register the service although it may still be off. Multiple instances of PostgreSQL services often distinguish themselves using a version number. Unregistered services must be added before its runlevel can be administrated.
$ chkconfig --add postgresql-9.6 <-- registers if not already
$ chkconfig --level 3 postgresql-9.6 on
$ chkconfig --list | grep postgres
postgresql-9.6 0:off 1:off 2:off 3:on 4:off 5:off 6:off