[systemd-devel] Alias use in socket file

2020-09-07 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 s

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

2020-09-07 Thread Alec Moskvin
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: systemd[1]: sshd.socket: Failed to queue service startup job (Maybe the

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

2020-09-07 Thread Kevin P. Fleming
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 you put in their [Install] section. Sometimes > it makes sense to add an [I

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

2020-09-07 Thread Sergey 'Jin' Bostandzhyan
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 services from ModemManager. To make sure that what I am looking for is actually there, I f

Re: [systemd-devel] Journal message timestamps

2020-09-07 Thread Lennart Poettering
On Mo, 07.09.20 14:12, Mantas Mikulėnas (graw...@gmail.com) wrote: > > To fix that we'd have to keep a separate log of boot ids or so > > somewhere, which we could use as auxiliary source of truth if all we > > have are bootids+monotonic time which came first by comparing boot > > ids. But that wo

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

2020-09-07 Thread Lennart Poettering
On Mo, 07.09.20 09:55, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > > The boot ID is generated very early on during boot, by the kernel > > internally long before /var becomes writable. Hence the entropy for it > > needs to come from somewhere else, and the kernel needs to make sure >

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

2020-09-07 Thread Lennart Poettering
On Mo, 07.09.20 10:00, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > > "Enabling" doesn't necessarily mean "start this at boot". Instead it > > just means "start this at the hookpoints that are declared in the > > unit's [Install] section". Typically this lists a hook point activated >

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

2020-09-07 Thread Lennart Poettering
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 > > simply bypassing logind and opening the devices directly with root > > privs?

Re: [systemd-devel] Antw: [EXT] Re: howto switch from grub2-bios to systemd-boot

2020-09-07 Thread Lennart Poettering
On Mo, 07.09.20 09:47, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > > Robust boot loaders typically want to write boot counters to disk, so > > that they can automatically revert back to older versions of the > > OS/kernel if it doesn't boot. Thus some form of write access is > > nece

Re: [systemd-devel] howto switch from grub2-bios to systemd-boot

2020-09-07 Thread Lennart Poettering
On So, 06.09.20 23:28, Alexander E. Patrakov (patra...@gmail.com) wrote: > > > But surely a boot loader of all things should never try to write to the > > > place it is loading from? Booting should be idempotent (as long as it > > > works, for sure). The only sane policy would seem to be that the

Re: [systemd-devel] non-existent unit instances

2020-09-07 Thread Lennart Poettering
On Sa, 05.09.20 18:46, Richard Hector (rich...@walnut.gen.nz) wrote: > Hi all, > > Quoting from another thread: > > On 5/09/20 4:36 am, Lennart Poettering wrote: > > Unit instances can be activated on-the-fly without further prepartion > > or regsitration of the instance string or so. it's suffici

Re: [systemd-devel] systemd-encrypt is a little painful

2020-09-07 Thread Lennart Poettering
On Mo, 07.09.20 18:04, Mantas Mikulėnas (graw...@gmail.com) wrote: > On Mon, Sep 7, 2020 at 5:33 PM Lennart Poettering > wrote: > > > On Mo, 07.09.20 13:51, Kai Hendry (hen...@webconverger.com) wrote: > > > > > Hi guys, > > > > > > After making https://www.youtube.com/watch?v=gh3jkIENmAM I'm > >

Re: [systemd-devel] systemd-encrypt is a little painful

2020-09-07 Thread Mantas Mikulėnas
On Mon, Sep 7, 2020 at 5:33 PM Lennart Poettering wrote: > On Mo, 07.09.20 13:51, Kai Hendry (hen...@webconverger.com) wrote: > > > Hi guys, > > > > After making https://www.youtube.com/watch?v=gh3jkIENmAM I'm > > thinking the install process could be a lot smoother if: > > > > somehow systemd co

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

2020-09-07 Thread Lennart Poettering
On So, 06.09.20 22:23, Francis Moreau (francis.m...@gmail.com) wrote: > > It's how socket activation works really (at least with Accept=no): pid > > 1 allocate the socket and activates your service every time something > > happens on it, except if your service is already running. Thus a > > servic

Re: [systemd-devel] systemd-encrypt is a little painful

2020-09-07 Thread Lennart Poettering
On Mo, 07.09.20 13:51, Kai Hendry (hen...@webconverger.com) wrote: > Hi guys, > > After making https://www.youtube.com/watch?v=gh3jkIENmAM I'm > thinking the install process could be a lot smoother if: > > somehow systemd could do the initramfs, i.e. take over mkinitcpio's > hook role Hmm, mkinit

Re: [systemd-devel] Journal message timestamps

2020-09-07 Thread Mantas Mikulėnas
On Fri, Sep 4, 2020 at 6:59 PM 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 have some questions about > ho

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

2020-09-07 Thread Kevin P. Fleming
On Mon, Sep 7, 2020 at 4:41 AM Ulrich Windl wrote: > I can't remember, but very recently I read that you can add an RTC to > raspberries via GPIO. Ah, I think I read it in the SLES15 SP2 deployment > guide. It's typically done via I2C; there are quite inexpensive DS-1307 modules that plug onto th

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

2020-09-07 Thread Kevin P. Fleming
On Mon, Sep 7, 2020 at 4:22 AM Reindl Harald wrote: > a timer is the same trigger as "enable" and get startet as part of the > boot process > > * letsencrypt.timer > * letsencrypt.service > > letsencrypt.service don't even have a [Install] section and can't be > enabled at all 'disabling' a servi

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

2020-09-07 Thread Reindl Harald
Am 07.09.20 um 10:52 schrieb Ulrich Windl: Vito Caputo schrieb am 05.09.2020 um 04:44 in Nachricht > <20200905024407.n2qy34rxqqdlv...@shells.gnugeneration.com>: >> Could you please stop signing mails sent to this publicly accessible, >> archived, and indexed/searchable mailing list w

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

2020-09-07 Thread Ulrich Windl
>>> Vito Caputo schrieb am 05.09.2020 um 04:44 in >>> Nachricht <20200905024407.n2qy34rxqqdlv...@shells.gnugeneration.com>: > Could you please stop signing mails sent to this publicly accessible, > archived, and indexed/searchable mailing list with this impossible > boilerplate: > >> IMPORTANT:

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

2020-09-07 Thread Ulrich Windl
>>> Shravan Singh schrieb am 05.09.2020 um 00:26 in Nachricht : > And this is a major problem for any one running raspberry pi, NXP or any > other embedded processor that uses mender and embedded linux. Maybe an embedded OS really should use UTC as timezone. > A machine with embedded linux runni

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

2020-09-07 Thread Pekka Paalanen
On Fri, 4 Sep 2020 16:40:00 +0200 Lennart Poettering wrote: > On Di, 26.05.20 16:55, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > Hi, > > > > I'm looking at letting Weston's 'meson test' run DRM-backend tests > > automatically and without the need of root privileges. I have a spare > > DRM

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

2020-09-07 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 05.09.2020 um 00:00 in Nachricht <20200904220001.GA268467@gardel-login>: > On Fr, 04.09.20 22:02, Dave Howorth (syst...@howorth.org.uk) wrote: > >> > (btw, systemd‑timesyncd does what fake‑hwclock does automatically, and >> > also does SNTP. it should be fine for

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

2020-09-07 Thread Reindl Harald
Am 07.09.20 um 10:00 schrieb Ulrich Windl: >> Anyway, long story short: you typically do not enable services that >> are only supposed to activated by timer units, enabling those timers >> should entirely suffice, and the timers will start the services when >> the time comes. > > Interesting: I

Re: [systemd-devel] howto switch from grub2-bios to systemd-boot

2020-09-07 Thread Mantas Mikulėnas
On Sun, Sep 6, 2020 at 9:28 PM Alexander E. Patrakov wrote: > On Sat, Sep 5, 2020 at 3:12 AM Lennart Poettering > wrote: > > > > On Fr, 04.09.20 21:41, Dave Howorth (syst...@howorth.org.uk) wrote: > > > > > On Fri, 4 Sep 2020 17:44:23 +0200 > > > Lennart Poettering wrote: > > > > On Fr, 04.09.2

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

2020-09-07 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 04.09.2020 um 18:36 in Nachricht <20200904163639.GU267847@gardel-login>: > On Mo, 31.08.20 16:50, Konstantin Ryabitsev (konstan...@linuxfoundation.org) > wrote: > >> On Mon, Aug 31, 2020 at 04:49:32PM ‑0400, Kevin P. Fleming wrote: >> > Yes, to get the instance‑

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

2020-09-07 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 04.09.2020 um 18:13 in Nachricht <20200904161306.GP267847@gardel-login>: > On Fr, 28.08.20 10:20, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) wrote: > >> The code in the kernel relies on feeding the random pool probably before >> getting the first UUID (but

[systemd-devel] Antw: [EXT] Re: howto switch from grub2-bios to systemd-boot

2020-09-07 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 04.09.2020 um 17:44 in Nachricht <20200904154423.GM267847@gardel-login>: > On Fr, 04.09.20 17:10, Reindl Harald (h.rei...@thelounge.net) wrote: > >> > No, that's not supported in sd‑boot. A boot loader is a boot loader, >> > it should contain a fragile storage st

[systemd-devel] Antw: Re: Antw: [EXT] Re: Need help with setting up systemd for Apache on Debian 10

2020-09-07 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 04.09.2020 um 17:40 in Nachricht <20200904154044.GL267847@gardel-login>: > On Di, 25.08.20 07:43, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) wrote: > >> Hi! >> >> The next challenge with systemd would be this: Have a password‑protected >> server key, needin

Re: [systemd-devel] Antw: [EXT] Re: Odd status after core dump

2020-09-07 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 04.09.2020 um 17:08 in Nachricht <20200904150837.GG267847@gardel-login>: > On Mo, 03.08.20 08:32, Ulrich Windl (ulrich.wi...@rz.uni‑regensburg.de) wrote: > >> OK, some additional notes (maybe these issues are fixed in a newer version >> already): >> Looking in my