Re: [systemd-devel] logging in RAM and journald configuration issue

2019-03-20 Thread Dave Howorth
This message was caught up in what looks like a freedesktop server crash so I'm reposting it slightly edited after other responses. Hopefully it will now reach the list and thread somewhat sensibly. > Lennart Poettering wrote on 20/03/2019 13:37: > > On Mi, 20.03.19 09:57, Dave Howorth

Re: [systemd-devel] systemd-activation: it's a mess for beginners

2019-03-20 Thread Reindl Harald
Am 20.03.19 um 21:10 schrieb Daniele Nicolodi: > On 20-03-2019 14:01, Reindl Harald wrote: >> Am 20.03.19 um 20:53 schrieb Daniele Nicolodi: >>> I am not sure what you are trying to say, but the first source code >>> snippet in your email in not valid C code. I don't know what you mean >>> by

Re: [systemd-devel] systemd-activation: it's a mess for beginners

2019-03-20 Thread Daniele Nicolodi
On 20-03-2019 14:01, Reindl Harald wrote: > Am 20.03.19 um 20:53 schrieb Daniele Nicolodi: >> I am not sure what you are trying to say, but the first source code >> snippet in your email in not valid C code. I don't know what you mean >> by "beginners" in the subject of your email, but I think

Re: [systemd-devel] systemd-activation: it's a mess for beginners

2019-03-20 Thread Daniele Nicolodi
I am not sure what you are trying to say, but the first source code snippet in your email in not valid C code. I don't know what you mean by "beginners" in the subject of your email, but I think that the documentation assumes basic knowledge of the C programming language. Cheers, Dan

Re: [systemd-devel] systemd-activation: it's a mess for beginners

2019-03-20 Thread Reindl Harald
Am 20.03.19 um 20:52 schrieb Mantas Mikulėnas: > On Wed, Mar 20, 2019 at 9:46 PM Reindl Harald wrote: >> >> http://0pointer.de/blog/projects/socket-activation.html >> >> - >> >> #include >> #include >> #include >> #include >> #include >> #include

Re: [systemd-devel] systemd-activation: it's a mess for beginners

2019-03-20 Thread Mantas Mikulėnas
On Wed, Mar 20, 2019 at 9:46 PM Reindl Harald wrote: > > http://0pointer.de/blog/projects/socket-activation.html > > - > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include

[systemd-devel] systemd-activation: it's a mess for beginners

2019-03-20 Thread Reindl Harald
http://0pointer.de/blog/projects/socket-activation.html - #include #include #include #include #include #include #include #include #include #include #include #include int fd; if(sd_listen_fds(0) != 1) { fprintf(stderr, "No or too many

Re: [systemd-devel] logging in RAM and journald configuration issue

2019-03-20 Thread Lennart Poettering
On Mi, 20.03.19 18:08, Dave Howorth (syst...@howorth.org.uk) wrote: > > At present AFAICT the log2ram.service runs > Before=systemd-journald.service and various other services, so I think > that aspect is covered. I'd be careful with that. If you have a service that runs before journald you need

Re: [systemd-devel] logging in RAM and journald configuration issue

2019-03-20 Thread Colin Guthrie
Lennart Poettering wrote on 20/03/2019 13:37: > On Mi, 20.03.19 09:57, Dave Howorth (syst...@howorth.org.uk) wrote: > >>> On Di, 19.03.19 20:45, Dave Howorth (syst...@howorth.org.uk) wrote: >>> In the case of a machine that uses an SD card as its primary backing store, it is desirable

Re: [systemd-devel] logging in RAM and journald configuration issue

2019-03-20 Thread Lennart Poettering
On Mi, 20.03.19 09:57, Dave Howorth (syst...@howorth.org.uk) wrote: > > On Di, 19.03.19 20:45, Dave Howorth (syst...@howorth.org.uk) wrote: > > > > > In the case of a machine that uses an SD card as its primary backing > > > store, it is desirable to reduce the number of write operations to > > >

Re: [systemd-devel] logging in RAM and journald configuration issue

2019-03-20 Thread Dave Howorth
> On Di, 19.03.19 20:45, Dave Howorth (syst...@howorth.org.uk) wrote: > > > In the case of a machine that uses an SD card as its primary backing > > store, it is desirable to reduce the number of write operations to > > the card in order to prolong its life. journald is quite > > well-behaved in

Re: [systemd-devel] logging in RAM and journald configuration issue

2019-03-20 Thread Lennart Poettering
On Di, 19.03.19 20:45, Dave Howorth (syst...@howorth.org.uk) wrote: > In the case of a machine that uses an SD card as its primary backing > store, it is desirable to reduce the number of write operations to the > card in order to prolong its life. journald is quite well-behaved in > this regard