Re: [systemd-devel] Some Questions About Systemd and Dbus-daemon

2020-03-31 Thread Lennart Poettering
On Mo, 30.03.20 21:28, 海阔天空 (858293...@qq.com) wrote: > Hi everyone, > > > I have some questions and I'd like to know if you can help to answer them. > > > 1. What is the relationship among systemd、dbus(libdbus,dbus-daemon) > and dbus-broker? dbus-broker and dbus-daemon are two different

Re: [systemd-devel] Stateless system - Centos8 and overlayfs on root

2020-03-31 Thread Lennart Poettering
On Fr, 27.03.20 10:17, Preston L. Bannister (pres...@bannister.us) wrote: > Looking for a sanity check from the folk how know more of systemd than do > I. Not looking for someone else to solve my problem, but could use a clue. > > Trying to figure out how to get an overlayfs root mounted early in

Re: [systemd-devel] Stateless system - Centos8 and overlayfs on root

2020-03-31 Thread Tobias Hunger
Hi, You said no data is to be stored when powered down. What do you need the overlay for then? Just mount to a tmpfs as '/' and centos as '/usr', which is something that systemd supports out of the box. You will need at least some files in /etc for this to work, and I just have the initrd untar

Re: [systemd-devel] Dynamic .timer scheduling

2020-03-31 Thread Lennart Poettering
On Di, 28.01.20 10:46, Johannes Ernst (johannes.er...@gmail.com) wrote: > Is there a best practice for scheduling .timers based on what happened in a > previous run? > > Pseudocode: > > while( true ) : > delta = runService(); > sleep( delta ); > > I can think of … > > 1) run the job

Re: [systemd-devel] The meaning of CanMultiSession=no on non-seat0

2020-03-31 Thread Lennart Poettering
On Di, 28.01.20 22:48, nerdopolis (bluescreen_aven...@verizon.net) wrote: > Hi > > Sorry if this is the wrong place for this. I can't seem to find a system-user > mailing list for this purpose on freedesktop. > > So I am curious about what CanMultiSession=no means, as I am able to start a >

Re: [systemd-devel] systemd-makefs with very slight data corruption ?

2020-03-31 Thread Lennart Poettering
On Mi, 12.02.20 19:19, Xogium (cont...@xogium.me) wrote: > Hi, > I am wondering about how to best implement a mechanism to recreate a specific > filesystem in case of the slightest data corruption done to it. From what I > read > in systemd-makefs manpage, the tool will not trigger if it can

Re: [systemd-devel] Antw: [EXT] Infinite loop at startup on var fsck failure

2020-03-31 Thread Lennart Poettering
On Mi, 26.02.20 10:39, Michael Biebl (mbi...@gmail.com) wrote: > Am Mi., 26. Feb. 2020 um 10:13 Uhr schrieb Ulrich Windl > : > > > > >>> Vito Caputo schrieb am 25.02.2020 um 01:01 in > > Nachricht > > <7343_1582589314_5e546582_7343_4690_1_20200225000143.nowls5peec5sx...@shells.gnu > > > >

Re: [systemd-devel] show journalctl while stopping?

2020-03-31 Thread Lennart Poettering
On Do, 23.01.20 10:32, Roger Pack (rogerdpa...@gmail.com) wrote: > Forgive me if this is too naive, but would it be possible for > systemctl to "immediately start outputting logs" (journalctl type > output) while it is in the middle of running a command? Ex: while > running "systemctl stop

Re: [systemd-devel] Best practices for starting unit only if network is online

2020-03-31 Thread Lennart Poettering
On Mi, 05.02.20 13:23, Paul Menzel (pmenzel+systemd-de...@molgen.mpg.de) wrote: > Dear systemd folks, > > > fwupd ships the service unit `fwupd-refresh.service` with the ordering below > [1]. > > After=network.target network-online.target systemd-networkd.service > NetworkManager.service

Re: [systemd-devel] Ask some questions about overlay+/dev/mtdblock?

2020-03-31 Thread Lennart Poettering
On Mo, 02.03.20 16:21, www (ouyangxua...@163.com) wrote: > Dear all, > > > Systemd is used in the embedded system. and some mounting information is as > follows: > > > dev on /dev type devtmpfs (rw,relatime,size=221372k,nr_inodes=55343,mode=755) > sys on /sys type sysfs (rw,relatime) > proc on

Re: [systemd-devel] crash with SECLABEL{selinux}="some info" syntax into udev rule

2020-03-31 Thread Lennart Poettering
On Do, 05.03.20 16:26, Valerii Chernous -X (vchernou - GLOBALLOGIC INC at Cisco) (vcher...@cisco.com) wrote: > > > Hi Team, > > I have issue with SECLABEL into systemd udevadm 243 and I see that mainline > also have this issue. > It look like Yu forgot initialize data into commit: > 25de7aa7b90

Re: [systemd-devel] Redirect logs from script to systemd's StandardOutput file

2020-03-31 Thread Lennart Poettering
On Do, 12.03.20 14:40, Ani A (aniruddh...@gmail.com) wrote: > Hello, > > I am on Ubuntu 18.04.2, and I have systemd version 237. I have some common > tasks > which need to happen prestart and poststop which I have moved to a > script. All unit > files look like: > >

Re: [systemd-devel] DynamicUser and root:root/0640 configuration in /etc

2020-03-31 Thread Lennart Poettering
On Fr, 31.01.20 13:35, Igor Gnatenko (i.gnatenko.br...@gmail.com) wrote: > Hello, > > I am writing systemd service for one software and I found out very > nice thing that you don't have to create users just for the service > and it can be done via DynamicUser in runtime. > > However, the software

Re: [systemd-devel] Infinite loop at startup on var fsck failure

2020-03-31 Thread Lennart Poettering
On Mo, 24.02.20 16:01, Vito Caputo (vcap...@pengaru.com) wrote: > Hello list, > > Today I experienced an unclean shutdown due to battery dying unexpectedly, > and it left my /var in a state requiring a manual fsck to repair errors. > > The normal startup process failed and dropped me to a rescue

Re: [systemd-devel] Reasoning behind sd_bus_error argument to sd_bus_call?

2020-03-31 Thread Lennart Poettering
On Mi, 18.03.20 12:14, Daan De Meyer (daan.j.deme...@gmail.com) wrote: > I completely agree that for errors returned by the service, a D-Bus error > is a lot better. However, from what I understand of sd-bus, any errors > returned by the service are encoded in the reply returned by sd_bus_call >

Re: [systemd-devel] Configuration option to set the ownership of coredump files

2020-03-31 Thread Lennart Poettering
On Do, 27.02.20 21:19, P.R.Dinesh (pr.din...@gmail.com) wrote: > Do we have a configuration option to change the ownership of core dump > files generated by systemd-coredump? > > Mainly I would like to set the ownership group of the coredumps to a custom > group. > > I am using systemd version

Re: [systemd-devel] making journald logs persistent on raspberry pi

2020-03-31 Thread Lennart Poettering
On Fr, 24.01.20 15:32, Dave Howorth (syst...@howorth.org.uk) wrote: > It's quite common on the Raspberry Pi to make /var/log a tmpfs, in > order to reduce the number of writes to the SD card that is the pi's > main storage. That's quite acceptable for most logs but I'd like to > make journald's

Re: [systemd-devel] Portable service binding a system port

2020-03-31 Thread Lennart Poettering
On Fr, 07.02.20 11:05, François (francois+syst...@kubler.org) wrote: > Hi, > > I’m finally answering my own question - well at least partially. > > I managed to identify the culprit : the `PrivateUsers=yes` directive. > > If I override it with a drop-in and set it to `no`, it works as expected

[systemd-devel] Antw: [EXT] Re: show journalctl while stopping?

2020-03-31 Thread Ulrich Windl
>>> Lennart Poettering schrieb am 31.03.2020 um 14:56 in Nachricht <2402_1585659382_5E833DF6_2402_244_1_20200331125612.GB27547@gardel-login>: > On Do, 23.01.20 10:32, Roger Pack (rogerdpa...@gmail.com) wrote: > >> Forgive me if this is too naive, but would it be possible for >> systemctl to

Re: [systemd-devel] question about a poweroff issue

2020-03-31 Thread Lennart Poettering
On Mi, 26.02.20 13:50, piliu (pi...@redhat.com) wrote: > Hi, > > I encountered a systemd bug during saving vmcore for kdump kernel. > > I got the following message: > > [ 60.283489] systemd[1]: Started Reload Configuration from the Real Root. > [ 60.290912] systemd[1]: Reached target Initrd

Re: [systemd-devel] sd_notify protocol definition

2020-03-31 Thread Lennart Poettering
On Di, 03.03.20 10:26, Łukasz Niemier (luk...@niemier.pl) wrote: > Is there documentation for sd_notify protocol? I am working on > pure-Erlang implementation of sd_notify (and few other systemd > facilities) and I am looking for better description than reading C > code which can be a little

Re: [systemd-devel] Creating a roaming USB home area using homectl

2020-03-31 Thread Lennart Poettering
On So, 08.03.20 22:07, Matthew Wardrop (mpward...@gmail.com) wrote: > Greetings all, > > When I heard news of systemd-homed I was excited, since it was my > understanding I'd be able to ferry only my external hard drive between home > and work during my bicycle commute, and be able to forget

Re: [systemd-devel] Read-only /etc, machine-id with an overlay - journald failing

2020-03-31 Thread Lennart Poettering
On Mi, 26.02.20 09:44, Andreas Kempe (andreas.ke...@actia.se) wrote: > Hello everyone, > > I'm working in a project with an embedded Linux system based on > Openembedded using Systemd version 241 as our init process. We're > using a read-only /etc. To facilitate development, we want to use a >

Re: [systemd-devel] sd-daemon documentation clarification

2020-03-31 Thread Lennart Poettering
On Mo, 02.03.20 13:38, Łukasz Niemier (luk...@niemier.pl) wrote: > > AFAIK both stdout and stderr even get attached to the same journal pipe by > > default, so they should also be interpreted in the same way. > > > > The description of SyslogLevelPrefix= in systemd.exec(5) also says: "This > >

Re: [systemd-devel] Cannot find a way to get time read from RTC during boot

2020-03-31 Thread Lennart Poettering
On Do, 12.03.20 07:13, Kevin P. Fleming (ke...@km6g.us) wrote: > I've got some Debian Buster systems (so using the Debian systemd > package 241-7), which have battery-backed RTCs. However the driver for > these RTCs is loaded as a module, not built into the kernel. As a > result the kernel's

Re: [systemd-devel] How does systemd (pid1) connect to system DBus?

2020-03-31 Thread Lennart Poettering
On Di, 04.02.20 17:34, Uoti Urpala (uoti.urp...@pp1.inet.fi) wrote: > On Mon, 2020-02-03 at 19:01 +, Dimitri John Ledkov wrote: > > I see that systemd pid1 manager is available on the system DBus. > > > > But when/how does it connect to it? > > unit_notify() calls manager_recheck_dbus(),

Re: [systemd-devel] Antw: Re: Antw: [EXT] Infinite loop at startup on var fsck failure

2020-03-31 Thread Lennart Poettering
On Mi, 26.02.20 10:55, Ulrich Windl (ulrich.wi...@rz.uni-regensburg.de) wrote: > > I suspect that the real problem is, that fsck failed to fix the file > > system, so as a result, systemd tried repeatedly to start the fsck job > > for /var as var.mount was pulled in as a dependency (e.g. for > >

Re: [systemd-devel] Is there a way to uninstall the file system first and then stop all services?I

2020-03-31 Thread Lennart Poettering
On Do, 27.02.20 20:39, www (ouyangxua...@163.com) wrote: > Dear all, > > > In systend, the order of power off is: first stop all services, and > then uninstall the file system to oldroot. In special applications, What do you mean "uninstall the file system to oldroot"? do you mean the

Re: [systemd-devel] Recommended shutdown method

2020-03-31 Thread Lennart Poettering
On Mi, 04.03.20 19:48, jay.bur...@fujitsu.com (jay.bur...@fujitsu.com) wrote: > All, > > I have a debate going on over which is the best way to recommend to > a development organization how to design a service shutdown. There are two > camps. > > > 1. Use the ExecStop with an additional

Re: [systemd-devel] sd-bus signal callback return value

2020-03-31 Thread Lennart Poettering
On Di, 24.03.20 21:43, Stanislav Angelovič (angelovi...@gmail.com) wrote: > Hi folks, > > Please, what is the difference in sd-bus behavior when my D-Bus signal > callback returns a zero return value versus a positive return value? positive means "I processed the message, stop processing it

Re: [systemd-devel] Cannot find a way to get time read from RTC during boot

2020-03-31 Thread Michał Zegan
Seems like rtc drivers as module is quite often a thing for embedded. But not sure where this should be solved, maybe at initramfs? If one is unwilling to build all rtc drivers into the kernel (the case of generic kernels where you would have to build all of them in)... W dniu 31.03.2020 o 16:29,

Re: [systemd-devel] Stateless system - Centos8 and overlayfs on root

2020-03-31 Thread Preston L. Bannister
On Tue, Mar 31, 2020 at 1:10 AM Lennart Poettering wrote: > On Fr, 27.03.20 10:17, Preston L. Bannister (pres...@bannister.us) wrote: > > > Had the (possibly) clever notion of using an overlayfs as the root mount, > > with a tmpfs as the upper, and the usual persistent volume as the > > lower. >

Re: [systemd-devel] Ordering after udev applied rules to `/dev/dri/card0`

2020-03-31 Thread Lennart Poettering
On Do, 19.03.20 20:24, Andrei Borzenkov (arvidj...@gmail.com) wrote: > 19.03.2020 19:47, Paul Menzel пишет: > > Dear systemd folks, > > > > > > I am using Debian Sid/unstable with systemd 245.2 and Weston 8.0.0. > > > > I amtrying to start a graphical desktop as soon as possible. Currently, > > I

Re: [systemd-devel] Ordering after udev applied rules to `/dev/dri/card0`

2020-03-31 Thread Lennart Poettering
On Do, 19.03.20 17:47, Paul Menzel (pmenzel+systemd-de...@molgen.mpg.de) wrote: > Dear systemd folks, > > > I am using Debian Sid/unstable with systemd 245.2 and Weston 8.0.0. > > I amtrying to start a graphical desktop as soon as possible. Currently, I > use Weston, but unfortunately accessing

Re: [systemd-devel] Cannot find a way to get time read from RTC during boot

2020-03-31 Thread Lennart Poettering
On Di, 31.03.20 17:39, Michał Zegan (webczat_...@poczta.onet.pl) wrote: > Seems like rtc drivers as module is quite often a thing for embedded. > But not sure where this should be solved, maybe at initramfs? If one is > unwilling to build all rtc drivers into the kernel (the case of generic >

Re: [systemd-devel] systemd-timesyncd - use unprivileged ports

2020-03-31 Thread Lennart Poettering
On Mi, 11.03.20 17:34, Jędrzej Dudkiewicz (jedrzej.dudkiew...@gmail.com) wrote: > Hi, > > I have quite a few devices running Linux in client's network - so I > have no control over it. It seems that all privileged UDP ports are > blocked I have to use unprivileged port. I'd like to use >

Re: [systemd-devel] Bizarre issue with logins and cgroups?

2020-03-31 Thread Lennart Poettering
On Sa, 28.03.20 14:02, Ryan (rym...@gmail.com) wrote: > I don't yet have a small test for this yet, so here's all the information > I've found while I get that ready: > > I have a side project that revolves around using > systemd-nspawn to run pet containers. One feature I'm

Re: [systemd-devel] location of user-1000.journal

2020-03-31 Thread Lennart Poettering
On Do, 19.03.20 16:05, Chris Murphy (li...@colorremedies.com) wrote: > Hi, > > I'm wondering if user journals are better being located in ~/.var by > default? In particular in a systemd-homed context when ~/ is > encrypted. Unfortunately the entire system's log stream is coming primarily through

Re: [systemd-devel] Cannot find a way to get time read from RTC during boot

2020-03-31 Thread Michał Zegan
I have used the embedded term unfortunately, but it seems to affect at least some devices like raspberry pi, odroid c2, like sbc's. W dniu 31.03.2020 o 17:57, Lennart Poettering pisze: > On Di, 31.03.20 17:39, Michał Zegan (webczat_...@poczta.onet.pl) wrote: > >> Seems like rtc drivers as module

Re: [systemd-devel] making journald logs persistent on raspberry pi

2020-03-31 Thread Dave Howorth
On Tue, 31 Mar 2020 14:48:48 +0200 Lennart Poettering wrote: > On Fr, 24.01.20 15:32, Dave Howorth (syst...@howorth.org.uk) wrote: > > > It's quite common on the Raspberry Pi to make /var/log a tmpfs, in > > order to reduce the number of writes to the SD card that is the pi's > > main storage.

Re: [systemd-devel] systemd-timesyncd - use unprivileged ports

2020-03-31 Thread Mantas Mikulėnas
On Tue, Mar 31, 2020, 22:40 Reindl Harald wrote: > > > Am 31.03.20 um 20:32 schrieb Jędrzej Dudkiewicz: > > but I understand that > > systemd-timesyncd always uses unprivileged source port? > what else? > NTP has a "Symmetric Active" mode, where both peers use port 123 as source *and*

Re: [systemd-devel] Cannot find a way to get time read from RTC during boot

2020-03-31 Thread Kevin P. Fleming
The simple service unit I posted later in the thread (which invokes hwclock) works great for me. On Tue, Mar 31, 2020 at 1:29 PM Michał Zegan wrote: > > I have used the embedded term unfortunately, but it seems to affect at > least some devices like raspberry pi, odroid c2, like sbc's. > > W

Re: [systemd-devel] systemd-timesyncd - use unprivileged ports

2020-03-31 Thread Jędrzej Dudkiewicz
Lennart, I suppose that what you wrote concerns UDP port on the server providing system that systemd-timesyncd uses to synchronize time? This is not a problem, from the point of view of the system where systemd-timesyncd is running privileged remote port is not a problem, I have problems if

Re: [systemd-devel] systemd-timesyncd - use unprivileged ports

2020-03-31 Thread Reindl Harald
Am 31.03.20 um 20:32 schrieb Jędrzej Dudkiewicz: > but I understand that > systemd-timesyncd always uses unprivileged source port? what else? ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] Bizarre issue with logins and cgroups?

2020-03-31 Thread Ryan
Thank you so much!! I spent ages trying to figure this out, and somehow that never occurred to me. When I first did nsbox, there was no concept of booted containers, so I just used nsenter for everything, then when I added this I had never considered moving to machinectl at that point. On Tue,

Re: [systemd-devel] Infinite loop at startup on var fsck failure

2020-03-31 Thread Vito Caputo
On Tue, Mar 31, 2020 at 03:32:04PM +0200, Lennart Poettering wrote: > On Mo, 24.02.20 16:01, Vito Caputo (vcap...@pengaru.com) wrote: > > > Hello list, > > > > Today I experienced an unclean shutdown due to battery dying unexpectedly, > > and it left my /var in a state requiring a manual fsck to