Re: [systemd-devel] StartLimitBurst/StartLimitInterval not getting enforced

2019-03-05 Thread prashantkumar dhotre
But the doc says https://www.freedesktop.org/software/systemd/man/systemd.unit.html " however, they apply to all kinds of starts (including manual), not just those triggered by theRestart= logic" so a sper doc , they apply to manual start/stop too. On Wed, Mar 6, 2019 at 12:53 PM Bruno Vernay wro

Re: [systemd-devel] StartLimitBurst/StartLimitInterval not getting enforced

2019-03-05 Thread Bruno Vernay
Hi, I would say that they limit restarts on errors (process crashes) Not an explicit command to stop and restart. There are no errors here. Bruno On Wed, Mar 6, 2019 at 8:02 AM prashantkumar dhotre < prashantkumardho...@gmail.com> wrote: > Hi, > I use v230 systemd. > I see that even after repeat

[systemd-devel] StartLimitBurst/StartLimitInterval not getting enforced

2019-03-05 Thread prashantkumar dhotre
Hi, I use v230 systemd. I see that even after repeated stop and start of my service, i dont see it going to going to failed state. I have not configured any StartLimitBurst/StartLimitInterval , so default values should take effect but I dont se ethat happening. service always restarts. Is this beh

[systemd-devel] Effect of reset-failed on service that is not in failed state

2019-03-05 Thread prashantkumar dhotre
Hi, Is there any side-effect of the 'reset-failed' operation on a service that is not in failed state. My understanding is , in that case, it is no-op. I have an app which uses dbus API for systemd to start/stop services. Here I always the startApp() of my app should always result in starting of ap

Re: [systemd-devel] How to set custom default target permanently?

2019-03-05 Thread Reindl Harald
Am 05.03.19 um 21:16 schrieb ashitha v: > How can I change the default.target to a custom.target permanently? When > the image is booting, it is set to multi-user.target by creating a > symlink from /etc/systemd/system/default.target. If I do systemctl > set-default custom.target, then the subseq

[systemd-devel] How to set custom default target permanently?

2019-03-05 Thread ashitha v
Hi, How can I change the default.target to a custom.target permanently? When the image is booting, it is set to multi-user.target by creating a symlink from /etc/systemd/system/default.target. If I do systemctl set-default custom.target, then the subsequent boots have the right default.target and

Re: [systemd-devel] sd-bus: serving method call message in a separate thread

2019-03-05 Thread Stanislav Angelovič
Hi Lennart, Thanks a lot for your elaborate reply. See inline replies... On Tue, Mar 5, 2019 at 11:27 AM Lennart Poettering wrote: > > On Mo, 04.03.19 21:56, Stanislav Angelovič (angelovi...@gmail.com) wrote: > > > sd-bus doesn't natively care for threads. However it's written in kind > of a th

Re: [systemd-devel] sd-bus: serving method call message in a separate thread

2019-03-05 Thread Lennart Poettering
On Mo, 04.03.19 21:56, Stanislav Angelovič (angelovi...@gmail.com) wrote: > Hi sd-bus-ers! heya, > Quick question: How can I process a method call on service side in a > different thread, without creating race condition? sd-bus doesn't natively care for threads. However it's written in kind of