Easily add something to linux system startup

Table of Contents

This info worked from the Simplified guide: https://www.simplified.guide/linux/automatically-run-program-on-startup

I wanted to start postgresql at startup, because I always end up starting it anyway. As a main-stream application I found it on the list:

sudo systemctl list-unit-files --type=service

Then I enabled it.

sudo systemctl enable postgresql

Done!

If it hadn’t been on the list I suppose I would have had to make my own unit file for it, thereby adding it to the list.

Tory Anderson avatar
Tory Anderson
Full-time Web App Engineer, Digital Humanist, Researcher, Computer Psychologist