Re: [systemd-devel] ActiveState property with value "inactive"is not being sent out when service is killed by signal

2016-07-27 Thread Pradeepa Kumar
also wanted to build a > service monitoring tool :) > > Cheers, > -- > Adrien BESNARD > > 2016-07-26 11:24 GMT+02:00 Pradeepa Kumar <cdprade...@gmail.com>: > >> Hi >> ActiveState property with value "inactive"is not being sent out when >> service

[systemd-devel] ActiveState property with value "inactive"is not being sent out when service is killed by signal

2016-07-26 Thread Pradeepa Kumar
Hi ActiveState property with value "inactive"is not being sent out when service is killed by signal I am using 219 version. I logged issue https://github.com/systemd/systemd/issues/3807 Thanks ___ systemd-devel mailing list

[systemd-devel] How to reset startlimitburst and startlimitinterval

2016-06-18 Thread Pradeepa Kumar
Hi Could you please let me know to reset startlimitburst and startlimitinterval of service. I am writing unit tests and each test should start fresh and run test on service .so values of startlimitburst and startlimitinterval of previous test should be reset before running each test . Thanks

Re: [systemd-devel] service stop taking too long

2016-05-20 Thread Pradeepa Kumar
I debugged this further . And this turned out to be issue with our script in ExecStop. Thanks for comments On May 20, 2016 8:16 PM, "Lennart Poettering" <lenn...@poettering.net> wrote: > On Wed, 18.05.16 20:38, Pradeepa Kumar (cdprade...@gmail.com) wrote: > > > sorry

Re: [systemd-devel] service stop taking too long

2016-05-18 Thread Pradeepa Kumar
18 01:18:46 machine1 myscript1[3941]: inside myscript1 As you can see, the beginning of execution of myscript1 took 40 sec. On Wed, May 18, 2016 at 8:23 PM, Reindl Harald <h.rei...@thelounge.net> wrote: > > > Am 18.05.2016 um 16:51 schrieb Pradeepa Kumar: > >> My understandi

Re: [systemd-devel] service stop taking too long

2016-05-18 Thread Pradeepa Kumar
rei...@thelounge.net> wrote: > > > Am 18.05.2016 um 16:23 schrieb Pradeepa Kumar: > >> I have a script in ExecStop in service file. >> In journalctl, The time difference between "Stopping XYZ service " and >> logs from my script in ExecStop is 42 sec. >> D

Re: [systemd-devel] service stop taking too long

2016-05-18 Thread Pradeepa Kumar
Poettering <lenn...@poettering.net> wrote: > On Wed, 18.05.16 16:00, Pradeepa Kumar (cdprade...@gmail.com) wrote: > > > Hi experts, > > I am using systemd v219. > > I need help with a systemd issue that I am seeing. > > I see that some times stopping of servi

[systemd-devel] service stop taking too long

2016-05-18 Thread Pradeepa Kumar
Hi experts, I am using systemd v219. I need help with a systemd issue that I am seeing. I see that some times stopping of service is taking long time (42 sec). i checked this in journal logs also. is this is known issue ? how do i debug this ? and any solutions ? Thanks for help.

Re: [systemd-devel] How to get notified on service state change

2015-10-11 Thread Pradeepa Kumar
2nd try.. On Fri, Oct 9, 2015 at 6:52 AM, Pradeepa Kumar <cdprade...@gmail.com> wrote: > Hi systemd-experts, > > I am writing a daemon which starts, stops and monitor services and I am > using dbus to interface with systemd. I send messages on dbus to start or

Re: [systemd-devel] changed property value in signal

2015-10-08 Thread Pradeepa Kumar
? On Fri, Jul 3, 2015 at 3:35 PM, Lennart Poettering <lenn...@poettering.net> wrote: > On Fri, 03.07.15 15:12, Pradeepa Kumar (cdprade...@gmail.com) wrote: > > > On Fri, Jul 3, 2015 at 2:12 PM, Lennart Poettering < > lenn...@poettering.net> > > wrote: > > >

[systemd-devel] How to get notified on service state change

2015-10-08 Thread Pradeepa Kumar
Hi systemd-experts, I am writing a daemon which starts, stops and monitor services and I am using dbus to interface with systemd. I send messages on dbus to start or stop the service and this is working well. I want to achieve the following: 1) Monitor service exit using the systemd dbus

[systemd-devel] c/c++ lib for dbus

2015-07-20 Thread Pradeepa Kumar
Hi I need to use functions to call method, get property value etc from dbus. also few utility functions like unit_name_from_dbus_path() from systemd. Can i use systemd as lib ? If yes how , where can I see examples? is there any lib for that in c /c++? Thanks

Re: [systemd-devel] How do I monitor for service exit , service failure and service start using DBus ?

2015-07-12 Thread Pradeepa Kumar
Hi all, 2nd try. I did not get any response for my queries. I am blocked on my work due to these queries. Any comments are highly welcome and appreciated Thanks , Prashant On Fri, Jul 10, 2015 at 11:36 AM, Pradeepa Kumar cdprade...@gmail.com wrote: Hello systemd-experts, I am new

[systemd-devel] How do I monitor for service exit , service failure and service start using DBus ?

2015-07-10 Thread Pradeepa Kumar
Hello systemd-experts, I am new to systemd and dbus. I am writing a daemon which starts, stops and monitor services and I am using dbus to interface with systemd. I send messages on dbus to start or stop the service and this is working well. I want to achieve the following: a) Monitor service

Re: [systemd-devel] from dbus , how do i find if app went down

2015-07-08 Thread Pradeepa Kumar
(running to other substate value) On Mon, Jul 6, 2015 at 10:03 AM, Pradeepa Kumar cdprade...@gmail.com wrote: Caching the unit's statet is one solution. But is there any alternative ? This seems such a basic use case , surprising why there is no easier API for this ? On research, I see

[systemd-devel] from dbus , how do i find if app went down

2015-07-03 Thread Pradeepa Kumar
I am writing lib which will monitor apps and notify/callback higher level if apps went down. How can I achieve this? I tried doing this using propertieschanged signal and reading substate property and that msg does not have old value and new value in the msg. I noticed that when app go down i get

Re: [systemd-devel] changed property value in signal

2015-07-03 Thread Pradeepa Kumar
please see my response inline On Fri, Jul 3, 2015 at 2:12 PM, Lennart Poettering lenn...@poettering.net wrote: On Thu, 02.07.15 10:18, Pradeepa Kumar (cdprade...@gmail.com) wrote: hi I am new to systemd. I am using systemd 208, libdbus-1-3_1.4.18-1ubuntu1.4_i386.deb I am to monitor

Re: [systemd-devel] from dbus , how do i find if app went down

2015-07-03 Thread Pradeepa Kumar
When you say 'Check the state instead ' Did you mean ActiveState ? On Jul 3, 2015 3:39 PM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 03.07.15 15:29, Pradeepa Kumar (cdprade...@gmail.com) wrote: I am writing lib which will monitor apps and notify/callback higher level if apps

Re: [systemd-devel] changed property value in signal

2015-07-02 Thread Pradeepa Kumar
2nd try On Jul 2, 2015 10:18 AM, Pradeepa Kumar cdprade...@gmail.com wrote: hi I am new to systemd. I am using systemd 208, libdbus-1-3_1.4.18-1ubuntu1.4_i386.deb I am to monitor unit stop/failure in my application . So I am subscribing to propertiesChanged signal and paring SubState

[systemd-devel] changed property value in signal

2015-07-01 Thread Pradeepa Kumar
hi I am new to systemd. I am using systemd 208, libdbus-1-3_1.4.18-1ubuntu1.4_i386.deb I am to monitor unit stop/failure in my application . So I am subscribing to propertiesChanged signal and paring SubState. The propertieschanged message contains a dictionary and invalidated list of properties.