Re: [systemd-devel] custom var in sd_notify

2018-03-01 Thread Lennart Poettering
On Do, 01.03.18 11:09, Umut Tezduyar Lindskog (u...@tezduyar.com) wrote: > On Wed, Feb 28, 2018 at 7:04 PM, Lennart Poettering > wrote: > > On Mo, 26.02.18 08:09, Mantas Mikulėnas (graw...@gmail.com) wrote: > > > >> > Daemons can choose to send additional variables.

Re: [systemd-devel] custom var in sd_notify

2018-03-01 Thread Umut Tezduyar Lindskog
On Wed, Feb 28, 2018 at 7:04 PM, Lennart Poettering wrote: > On Mo, 26.02.18 08:09, Mantas Mikulėnas (graw...@gmail.com) wrote: > >> > Daemons can choose to send additional variables. However, it is recommended >> > to prefix variable names not listed above with X_. >> >

Re: [systemd-devel] custom var in sd_notify

2018-02-28 Thread Lennart Poettering
On Mo, 26.02.18 08:09, Mantas Mikulėnas (graw...@gmail.com) wrote: > > Daemons can choose to send additional variables. However, it is recommended > > to prefix variable names not listed above with X_. > > So naturally i tried > > > > sd_notify(0, "X_ANSWER=42") > > > > and apparently systemd has

Re: [systemd-devel] custom var in sd_notify

2018-02-26 Thread aleivag
It make sense, Thank you for the clarification! El 25 feb. 2018 10:09 p. m., "Mantas Mikulėnas" escribió: On Mon, Feb 26, 2018 at 12:32 AM, aleivag wrote: > Hi all, hope you are doing: > > i was toying aroud sd_notify and sd-daemon.h and found this

Re: [systemd-devel] custom var in sd_notify

2018-02-25 Thread Mantas Mikulėnas
On Mon, Feb 26, 2018 at 12:32 AM, aleivag wrote: > Hi all, hope you are doing: > > i was toying aroud sd_notify and sd-daemon.h and found this section in > https://github.com/systemd/systemd/blob/master/src/system > d/sd-daemon.h#L234-L235 it said: > > Daemons can choose to

[systemd-devel] custom var in sd_notify

2018-02-25 Thread aleivag
Hi all, hope you are doing: i was toying aroud sd_notify and sd-daemon.h and found this section in https://github.com/systemd/systemd/blob/master/src/ systemd/sd-daemon.h#L234-L235 it said: Daemons can choose to send additional variables. However, it is recommended to prefix variable names not