Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As we can see below we can't rely on `postgresql.service` to propagate correctly all actions in all circumstances to `postgresql@.service`. It's perhaps due to the fact that `postgresql.service` is configured with (see `systemctl cat postgresql.service` for more details): ``` [Service] Type=oneshot ExecStart=/bin/true ExecReload=/bin/true RemainAfterExit=on ``` So it's safer to target explicitely the final service name (e.g.:`postgresql@15-main.service`). Case not OK: ``` systemctl is-active postgresql.service active systemctl is-active postgresql@15-main.service active systemctl stop postgresql@15-main.service systemctl is-active postgresql@15-main.service inactive systemctl is-active postgresql.service active ``` Case OK: ``` systemctl start postgresql@15-main.service systemctl is-active postgresql@15-main.service active systemctl is-active postgresql.service active systemctl stop postgresql.service systemctl is-active postgresql.service inactive systemctl is-active postgresql@15-main.service inactive ```
- Loading branch information