Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target| # STEP 1: VERIFY THAT YOU DO NOT ALREADY HAVE POSTGRESQL INSTALLED ON YOUR SYSTEM | |
| ps ax | grep postgres | |
| # STEP 2: INSTALL POSTGRESQL ON YOUR SYSTEM | |
| sudo apt-get update | |
| sudo apt-get install postgresql-9.1 | |
| # List All Postgres related packages | |
| dpkg -l | grep postgres |