Usually you do this with your initialization system. In traditional unixes, this means /etc/init.d scripts, but on modern ones, including major Linux distributions, often something else.
Having said that on modern Unix systems, installing PostgreSQL using the package manager usually causes it to start at startup, so you donβt even have to.
What Linux distribution do you use, and how did you install PostgreSQL?
source share