● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; disabled; vendor preset:
å
disabled)
Active: inactive (dead)
#
ls -al /etc/systemd/system/multi-user.target.wants/postgresql.service
ls: cannot access ’/etc/systemd/system/multi-user.target.wants/postgresql.service’: No
å
such file or directory
#
systemctl enable postgresql
[...]
#
ls -al /etc/systemd/system/multi-user.target.wants/postgresql.service
lrwxrwxrwx 1 root root 38 Jan 26 19:09 /etc/systemd/system/multi-user.target.wants/
å
postgresql.service -> /lib/systemd/system/postgresql.service
#
systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset:
å
disabled)
Active: inactive (dead)
#
systemctl start postgresql
#
systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset:
å
disabled)
Active: active (exited) since Tue 2021-01-26 19:10:31 EST; 5s ago
Process: 1495 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 1495 (code=exited, status=0/SUCCESS)
Jan 26 19:10:31 kali-rolling systemd[1]: Starting PostgreSQL RDBMS...
Jan 26 19:10:31 kali-rolling systemd[1]: Started PostgreSQL RDBMS.