Re: [systemd-devel] systemd-devel Digest, Vol 125, Issue 21

2020-09-08 Thread ????????
t or I am missing something. Thanks, Amit ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- next part -- An HTML attachment w

Re: [systemd-devel] [EXT] Re: Using timedatectl on a readonly rootfile system using mender

2020-09-08 Thread Alvin Šipraga
Hi, On 9/8/20 4:12 PM, Colin Guthrie wrote: > 2. Set your /etc/ master image to make /etc/localtime to be a symlink to > /run/localtime and then ensure /run/localtime is a symlink to the > appropriate file in /usr during early boot (e.g. in initramfs). Then > when you want to to change the

Re: [systemd-devel] libsystemd/sd_bus: trouble understanding how to parse complex responses

2020-09-08 Thread Sergey 'Jin' Bostandzhyan
Hi Lennart, On Tue, Sep 08, 2020 at 03:58:34PM +0200, Lennart Poettering wrote: > > Service /org/freedesktop/ModemManager1: > > Failed to introspect object / of service /org/freedesktop/ModemManager1: > > Invali argument > > No objects discovered. > > > > The tree looks fine, the error message

Re: [systemd-devel] [EXT] Re: Using timedatectl on a readonly rootfile system using mender

2020-09-08 Thread juice
Shravan Singh kirjoitti 2020-09-08 16:31: No one is answering a simple question. Why we have to guard timezone so much?. Why can't I change it? What happens if I change it on a read-only rootfs? I am breaking the whole systemd by doing this? In fact most of the people in this group are

Re: [systemd-devel] Why systemd keeps references on passed sockets ?

2020-09-08 Thread Lennart Poettering
On Di, 08.09.20 17:35, Francis Moreau (francis.m...@gmail.com) wrote: > On Mon, Sep 7, 2020 at 4:38 PM Lennart Poettering > wrote: > > > > "React on the socket close?" — What do you mean by that? > > > > I mean if my service explicitly calls close() then systemd could stop > the socket on its

Re: [systemd-devel] Why systemd keeps references on passed sockets ?

2020-09-08 Thread Francis Moreau
On Mon, Sep 7, 2020 at 4:38 PM Lennart Poettering wrote: > > "React on the socket close?" — What do you mean by that? > I mean if my service explicitly calls close() then systemd could stop the socket on its side so its are freed until the service is restarted. I think it is what you described

Re: [systemd-devel] Antw: [EXT] Re: Q: Start a unit n minutes after a successful boot

2020-09-08 Thread Lennart Poettering
On Di, 08.09.20 11:01, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > >> Configuring a new system with non‑redundant system disk I'm wondering: > >> How could I start an automatic backup job that is triggered n minutes > >> after the system started successfully (to avoid backing up

Re: [systemd-devel] socket: Failed to queue service startup job: Transport endpoint is not connected

2020-09-08 Thread Lennart Poettering
On Mo, 07.09.20 14:22, Alec Moskvin (al...@gmx.com) wrote: > A few days ago I tried to ssh into one of my boxes (which was using > socket-activated per-connection ssh) but got connection refused. Luckily > I had another ssh session open. In the journal, the only relevant thing > logged was: > >

Re: [systemd-devel] Q: Start a unit n minutes after a successful boot

2020-09-08 Thread Lennart Poettering
On Di, 08.09.20 09:21, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > Hi! > > Configuring a new system with non-redundant system disk I'm > wondering: How could I start an automatic backup job that is > triggered n minutes after the system started successfully (to avoid > backing up

Re: [systemd-devel] [EXT] Initialization of "vbuf" in function "token_match_attr"

2020-09-08 Thread Josef Möllers
On 08.09.20 16:03, Amit anand wrote: > Hi, > > On Tue, Sep 8, 2020 at 6:23 PM Ulrich Windl > > wrote: > > Hi! > > vbuf is initialized: It has some address on the stack, so "if > (value != vbuf)" is comparing adresses, if I got it right... > >

Re: [systemd-devel] Journal message timestamps

2020-09-08 Thread Dave Howorth
On Tue, 8 Sep 2020 07:18:15 -0400 "Kevin P. Fleming" wrote: > On Tue, Sep 8, 2020 at 7:12 AM Reindl Harald > wrote: > > > your playground is in > > /etc/systemd/system/fake-hwclock.service.d/myoverrides.conf > > > > and yes that is important so that you don#t have to redo your > > changes after

Re: [systemd-devel] [EXT] Re: Using timedatectl on a readonly rootfile system using mender

2020-09-08 Thread Colin Guthrie
It's not specifically guarded. Dynamic stuff like networking is specifically excluded. Timezone is pretty much the same as any other config, in that if you want to change it make sure you can save it. I'd argue that dynamically changing timezone for the duration of a boot is not that common. If

Re: [systemd-devel] Alias use in socket file

2020-09-08 Thread Lennart Poettering
On Di, 08.09.20 08:45, Belisko Marek (marek.beli...@gmail.com) wrote: > Hi, > > I'm using yocto build systemd and I'm using openssh server which > create sshd.socket + sshd@.service files. With socket I can control if > ssh is enabled / disabled. I have an application which expects to > check

Re: [systemd-devel] [EXT] Initialization of "vbuf" in function "token_match_attr"

2020-09-08 Thread Amit anand
Hi, On Tue, Sep 8, 2020 at 6:23 PM Ulrich Windl < ulrich.wi...@rz.uni-regensburg.de> wrote: > Hi! > > vbuf is initialized: It has some address on the stack, so "if (value != > vbuf)" is comparing adresses, if I got it right... > vbuf having some address on stack and "if(value!=vbuf)" is

Re: [systemd-devel] Antw: [EXT] Re: User/Group overrides in a templated service triggered via timer

2020-09-08 Thread Lennart Poettering
On Mo, 07.09.20 14:19, Kevin P. Fleming (ke...@km6g.us) wrote: > On Mon, Sep 7, 2020 at 11:58 AM Lennart Poettering > wrote: > > Not sure I can parse this. Both timers and services are units in > > systemd. You can enable timer units, and you can enable service units, > > it all depends on what

Re: [systemd-devel] libsystemd/sd_bus: trouble understanding how to parse complex responses

2020-09-08 Thread Lennart Poettering
On Mo, 07.09.20 19:40, Sergey 'Jin' Bostandzhyan (j...@mediatomb.cc) wrote: > Hi, > > I have spent quite some time on this, but I don't seem to be getting > anywhere, so I hope someone could point me in the right direction. > > I am learning sd_bus, my goal is to get a list of available modem

Re: [systemd-devel] [EXT] Re: Using timedatectl on a readonly rootfile system using mender

2020-09-08 Thread Shravan Singh
No one is answering a simple question. Why we have to guard timezone so much?. Why can't I change it? What happens if I change it on a read-only rootfs? I am breaking the whole systemd by doing this? In fact most of the people in this group are suggesting a work-around to me "I wonder: If you

Re: [systemd-devel] Antw: [EXT] Initialization of "vbuf" in function "token_match_attr"

2020-09-08 Thread Josef Möllers
On 08.09.20 14:53, Ulrich Windl wrote: > Hi! > > vbuf is initialized: It has some address on the stack, so "if (value != > vbuf)" is comparing adresses, if I got it right... You got it right, but I stumble across this (in essence): char vbuf[UTIL_NAME_SIZE]; char **value; if (value != vbuf)    

[systemd-devel] Antw: [EXT] Initialization of "vbuf" in function "token_match_attr"

2020-09-08 Thread Ulrich Windl
Hi! vbuf is initialized: It has some address on the stack, so "if (value != vbuf)" is comparing adresses, if I got it right... >>> Amit anand schrieb am 08.09.2020 um 13:56 in >>> Nachricht : > Hi systemd-devel team, > > I am trying to understand where "vbuf" is initialized in function >

[systemd-devel] Initialization of "vbuf" in function "token_match_attr"

2020-09-08 Thread Amit anand
Hi systemd-devel team, I am trying to understand where "vbuf" is initialized in function "token_match_attr()" in file udev-rules.c Below code snippet : static bool* token_match_attr*(UdevRuleToken *token, sd_device *dev, UdevEvent *event) { *char* nbuf[UTIL_NAME_SIZE], *vbuf*[UTIL_NAME_SIZE];

Re: [systemd-devel] Journal message timestamps

2020-09-08 Thread Kevin P. Fleming
On Tue, Sep 8, 2020 at 7:12 AM Reindl Harald wrote: > your playground is in > /etc/systemd/system/fake-hwclock.service.d/myoverrides.conf > > and yes that is important so that you don#t have to redo your changes > after each and every update and way better than cloning the whole > unit-file in

Re: [systemd-devel] Journal message timestamps

2020-09-08 Thread Reindl Harald
Am 08.09.20 um 13:06 schrieb Mark Corbin: > Change /lib/systemd/system/fake-hwclock.service to add > 'systemd-journald.service' to the end of the 'Before' line this is *system* area and the admin has no business to touch anything there as well as packages have no business to touch admin area

Re: [systemd-devel] Journal message timestamps

2020-09-08 Thread Mark Corbin
On 04/09/2020 22:02, Dave Howorth wrote: On Fri, 4 Sep 2020 17:59:02 +0200 Lennart Poettering wrote: On Do, 27.08.20 11:33, Mark Corbin (m...@dibsco.co.uk) wrote: Hello I am working on time synchronisation issues at boot for systems without an RTC (using balenaOS on a Raspberry Pi 3) and

Re: [systemd-devel] Antw: [EXT] Journal message timestamps

2020-09-08 Thread Mark Corbin
On 04/09/2020 17:19, Lennart Poettering wrote: On Fr, 28.08.20 14:34, Mark Corbin (m...@dibsco.co.uk) wrote: For example, when /run/log/journal/d197a2e910964a7f9a0de6462d0d7c62/ contains just 'system.journal' which has all log messages from: 'kernel: Booting Linux on physical CPU 0x0' up to

Re: [systemd-devel] Q: Start a unit n minutes after a successful boot

2020-09-08 Thread Reindl Harald
Am 08.09.20 um 09:21 schrieb Ulrich Windl: > Configuring a new system with non-redundant system disk I'm wondering: How > could I start an automatic backup job that is triggered n minutes after the > system started * create a own target * order it after multi-user.target * put a service jn

[systemd-devel] Antw: [EXT] Re: Q: Start a unit n minutes after a successful boot

2020-09-08 Thread Ulrich Windl
>>> Tomasz Torcz schrieb am 08.09.2020 um 09:58 in Nachricht <20200908075833.ga46...@mother.pipebreaker.pl>: > On Tue, Sep 08, 2020 at 09:21:02AM +0200, Ulrich Windl wrote: >> Hi! >> >> Configuring a new system with non‑redundant system disk I'm wondering: >> How could I start an automatic

Re: [systemd-devel] Q: Start a unit n minutes after a successful boot

2020-09-08 Thread Tomasz Torcz
On Tue, Sep 08, 2020 at 09:21:02AM +0200, Ulrich Windl wrote: > Hi! > > Configuring a new system with non-redundant system disk I'm wondering: > How could I start an automatic backup job that is triggered n minutes > after the system started successfully (to avoid backing up broken >

[systemd-devel] Q: Start a unit n minutes after a successful boot

2020-09-08 Thread Ulrich Windl
Hi! Configuring a new system with non-redundant system disk I'm wondering: How could I start an automatic backup job that is triggered n minutes after the system started successfully (to avoid backing up broken configurations)? Regards, Ulrich ___

Re: [systemd-devel] Logind: how to access a device when you're not the session controller

2020-09-08 Thread Pekka Paalanen
On Mon, 7 Sep 2020 17:53:46 +0200 Lennart Poettering wrote: > On Mo, 07.09.20 11:47, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > > I am not aware of any. > > > > > > > Any suggestions on what might work? > > > > > > Other than patching logind with some new concept, no suggestion. Or >

[systemd-devel] Alias use in socket file

2020-09-08 Thread Belisko Marek
Hi, I'm using yocto build systemd and I'm using openssh server which create sshd.socket + sshd@.service files. With socket I can control if ssh is enabled / disabled. I have an application which expects to check statu of ssh.service. I tried to add Alias=ssh.service to sshd.socket file and tried