At the time stop finish it already counts as inactive which seems wrong.
While the processes still are up I got:
$ systemctl is-active postgresql
inactive
$ systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor
preset: enabled)
Active: inactive (dead) since Fri 2020-02-07 09:26:45 UTC; 28ms ago
Process: 31910 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 31910 (code=exited, status=0/SUCCESS)
Feb 07 09:26:45 f systemd[1]: Starting PostgreSQL RDBMS...
Feb 07 09:26:45 f systemd[1]: Started PostgreSQL RDBMS.
Feb 07 09:26:45 f systemd[1]: postgresql.service: Succeeded.
Feb 07 09:26:45 f systemd[1]: Stopped PostgreSQL RDBMS
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1862138
Title:
"systemctl stop postgresql" fails to stop postgresql
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/1862138/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs