[Bug 1862138] Re: "systemctl stop postgresql" fails to stop postgresql

2020-02-07 Thread Bug Watch Updater
** Changed in: postgresql-common (Debian) Status: Unknown => Confirmed -- 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

[Bug 1862138] Re: "systemctl stop postgresql" fails to stop postgresql

2020-02-07 Thread Christian Ehrhardt 
Currently ordering is only done by the per Cluster services listing Before=postgresql.service Further the generator adds symlinks in /run/systemd/generator/postgresql.service.wants/. That makes it work on startup in terms of ordering. There is:

[Bug 1862138] Re: "systemctl stop postgresql" fails to stop postgresql

2020-02-07 Thread Christian Ehrhardt 
So far to odd, but we have to remember that: root@f:~# systemctl cat postgresql # /lib/systemd/system/postgresql.service # systemd service for managing all PostgreSQL clusters on the system. This # service is actually a systemd target, but we are using a service since # targets cannot be

[Bug 1862138] Re: "systemctl stop postgresql" fails to stop postgresql

2020-02-07 Thread Christian Ehrhardt 
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;

[Bug 1862138] Re: "systemctl stop postgresql" fails to stop postgresql

2020-02-07 Thread Christian Ehrhardt 
Start by default seems synchronous, but stop isn't: root@f:~# systemctl start postgresql; echo STARTED; ps auxw | grep ^postgre; systemctl stop postgresql; echo STOPPED; ps auxw | grep ^postgre; sleep 5s; echo LATER; ps auxw | grep ^postgre;STARTED postgres 31731 0.0 0.0 216444 24764 ?

[Bug 1862138] Re: "systemctl stop postgresql" fails to stop postgresql

2020-02-07 Thread Christian Ehrhardt 
bug 870379 to me seems not related, that was never stopping the processes - while here we only have to wait a bit. -- 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

[Bug 1862138] Re: "systemctl stop postgresql" fails to stop postgresql

2020-02-07 Thread Christian Ehrhardt 
To be clear - the services are stopped eventually, the issue is about `systemctl stop postgresql` coming back while still some processes are up. I can confirm that behavior and agree that it might break e.g. automation that wants to do stop/change/start for changes known to break with the service

[Bug 1862138] Re: "systemctl stop postgresql" fails to stop postgresql

2020-02-06 Thread Mikko Rantalainen
maybe somewhat related to bug 870379 ? -- 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