Re: [systemd-devel] Unload disabled units

2019-11-21 Thread Andrei Borzenkov
15.09.2019 6:12, Daniel Duong пишет: > Hi, > > I have a 2 template units: 1 for a service and 1 for a socket. Each > instance is a version of my web application. > > After a successful deploy, I stop and disable the old version and I > enable the new one: > systemctl start belleshop@0.2.soc

Re: [systemd-devel] Unload disabled units

2019-09-16 Thread Daniel Duong
> You should check to see if anything is actually still referencing these > units. Try `systemd-analyze dump` and see if any "ReferencedBy" entries > appear for these units. It seems that they are referencing each other: -> Unit belleshop@0.58.service: [...]

Re: [systemd-devel] Unload disabled units

2019-09-16 Thread Daniel Duong
> Normally units should be unloaded immediately if they are stopped > and didn't fail. What systemd version are you using? (One possibility > to consider is that the glob matches *files*, and you are simply loading > the units at the time the systemctl query is made. Use 'belleshop@*' > instead.) I

Re: [systemd-devel] Unload disabled units

2019-09-16 Thread Michael Chapman
On Sun, 15 Sep 2019, Daniel Duong wrote: > Hi, > > I have a 2 template units: 1 for a service and 1 for a socket. Each > instance is a version of my web application. > > After a successful deploy, I stop and disable the old version and I > enable the new one: > systemctl start belleshop@0.2

Re: [systemd-devel] Unload disabled units

2019-09-16 Thread Michael Chapman
On Mon, 16 Sep 2019, Reindl Harald wrote: > Am 16.09.19 um 09:36 schrieb Zbigniew Jędrzejewski-Szmek: > > Normally units should be unloaded immediately if they are stopped > > and didn't fail. What systemd version are you using? > > the better question is which one are you using because this behav

Re: [systemd-devel] Unload disabled units

2019-09-16 Thread Reindl Harald
Am 16.09.19 um 09:36 schrieb Zbigniew Jędrzejewski-Szmek: > Normally units should be unloaded immediately if they are stopped > and didn't fail. What systemd version are you using? the better question is which one are you using because this behavior below exists for many years and it's good give

Re: [systemd-devel] Unload disabled units

2019-09-16 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Sep 15, 2019 at 03:12:22AM +, Daniel Duong wrote: > Hi, > > I have a 2 template units: 1 for a service and 1 for a socket. Each > instance is a version of my web application. > > After a successful deploy, I stop and disable the old version and I > enable the new one: > systemct

Re: [systemd-devel] Unload disabled units

2019-09-15 Thread Reindl Harald
Am 15.09.19 um 15:55 schrieb Daniel Duong: >> what about "systemctl daemon-reload”? >> it's not mentioned anywhere in your post > I tried, it doesn’t remove the old units. if it's physically there it still keep loaded if it's physically gone it don't ___

Re: [systemd-devel] Unload disabled units

2019-09-15 Thread Daniel Duong
> what about "systemctl daemon-reload”? > it's not mentioned anywhere in your post I tried, it doesn’t remove the old units. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Unload disabled units

2019-09-15 Thread Reindl Harald
Am 15.09.19 um 05:12 schrieb Daniel Duong: > I have a 2 template units: 1 for a service and 1 for a socket. Each > instance is a version of my web application. > > After a successful deploy, I stop and disable the old version and I > enable the new one: > systemctl start belleshop@0.2.sock

[systemd-devel] Unload disabled units

2019-09-14 Thread Daniel Duong
Hi, I have a 2 template units: 1 for a service and 1 for a socket. Each instance is a version of my web application. After a successful deploy, I stop and disable the old version and I enable the new one: systemctl start belleshop@0.2.socket # Test that everything is fine