Re: [systemd-devel] D-feet displays an error message when using sd-bus

2021-10-19 Thread Mantas Mikulėnas
On Tue, Oct 19, 2021, 18:29 yves baumes wrote: > Hello, > > First I am not sure it is the correct place to ask questions about lib > sd-bus. Is it? Here is my issues: > > I am trying to use the lib sd-bus, following this blog post: > http://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html .

Re: [systemd-devel] PIDFile creation logic

2021-10-19 Thread Mantas Mikulėnas
On Tue, Oct 19, 2021, 08:45 Andrei Borzenkov wrote: > On 18.10.2021 23:08, Silvio Knizek wrote: > > Am Montag, dem 18.10.2021 um 12:43 -0700 schrieb Kenneth Porter: > >> I just installed the new-to-EPEL ndppd service and am seeing this in my > log: > >> > >> Oct 17 21:10:08 saruman systemd:

Re: [systemd-devel] firmware times reported were incorrect.

2021-10-13 Thread Mantas Mikulėnas
e) + 33.051s (loader) + > 4.428s* > *(kernel) + 1min 18.870s (initrd) + 44.494s (userspace) = 1h 1min 48.789s* > > > > *May I ask what is the source of the **firmware** ? is it read from acpi > table? * > > > -- Mantas Mikulėnas

Re: [systemd-devel] Prefix for direct logging

2021-09-28 Thread Mantas Mikulėnas
On Tue, Sep 28, 2021, 06:07 Arjun D R wrote: > Thank you Mantas for the details. > How do you currently get the logs "every few seconds"? > > Actually we have a script that will be triggered every 10 seconds. That > script will run "journalctl -u " and redirect the output to the > respective log

Re: [systemd-devel] Prefix for direct logging

2021-09-27 Thread Mantas Mikulėnas
log files is basically what they *do*, and both of them are capable of receiving logs from journald (either by directly monitoring .journal files or by having the messages forwarded via socket). -- Mantas Mikulėnas

Re: [systemd-devel] Xorg or Wayland Environment

2021-09-19 Thread Mantas Mikulėnas
SION becomes true", it just won't be run at all. You said that the service runs at the login screen -- I'm not sure how this can happen if your service is installed into plasma-core.target.wants/ (and *not* in default.target.wants nor basic.target.wants)... -- Mantas Mikulėnas

Re: [systemd-devel] Xorg or Wayland Environment

2021-09-19 Thread Mantas Mikulėnas
trc.d/50-systemd-user.sh handles the bare minimum for other Xorg-based desktops (when startx is used). If KDE integrates with systemd --user in any way (i.e. if it actually has a "plasma-core.target" that you mention), I'd really expect it to do the same before it tries to start its own ta

Re: [systemd-devel] when mount is delayed - start unit which depends on it - ?

2021-09-18 Thread Mantas Mikulėnas
do I make such a unit to re/start when > 'systemd' does the mount? Naturally, ideally without any > ways external to 'systemd'. > If units need this mount, then *actually* make them depend on this mount – as in, "Requires=devs.mount" and "After=devs.mount" in each service's [Unit]. -- Mantas Mikulėnas

Re: [systemd-devel] Filter/Parse NETLINK_KOBJECT_UEVENT Messages

2021-09-13 Thread Mantas Mikulėnas
pdump/libpcap. > 2. Is a correct way of filtering these to implement string parsing to > check for '/event' sub-string in EPF bytecode? > See sd_device_monitor_filter_update() in src/libsystemd/sd-device/device-monitor.c (nowadays, sd-device has all the interesting code, while libude

Re: [systemd-devel] Filter/Parse NETLINK_KOBJECT_UEVENT Messages

2021-09-13 Thread Mantas Mikulėnas
this through audio mixer events from ALSA (I'm not sure how PulseAudio does it, but something /dev/snd/control*), or alternatively through evdev (there's a /dev/input/event* node which produces SW_HEADPHONE_INSERT) – but not through device uevents. -- Mantas Mikulėnas

Re: [systemd-devel] Filter/Parse NETLINK_KOBJECT_UEVENT Messages

2021-09-13 Thread Mantas Mikulėnas
poof* anytime soon, especially if you're looking for compatibility with older systems or eudev-using distros.) Start with udev_monitor_new_from_netlink() and use udev_monitor_filter_add_match_*() to filter by subsystem, devtype, or some arbitrary property, then you'll receive events already parsed. That's 3 lines of code in comparison to your 30. -- Mantas Mikulėnas

Re: [systemd-devel] Unable to boot Linux distribution ISO files that have systemd services

2021-09-01 Thread Mantas Mikulėnas
he udev worker processes, I guess? (The same issue might be occurring even on installed systems, only they don't *wait* for udev to finish handling every single device (systemd-udev-settle), so the process might just remain hung in background.) -- Mantas Mikulėnas

Re: [systemd-devel] why log_set_prohibit_ipc() is set in journald

2021-08-27 Thread Mantas Mikulėnas
On Fri, Aug 27, 2021, 08:52 Nishant Nayan wrote: > I have just started to learn journald and in its main function (in > journald.c) I encountered a function call "log_set_prohibit_ipc(true);" > In systemd source, I can see the declaration in src/basic/log.h:/* > > If turned on, then we'll never

Re: [systemd-devel] How does journald talks to other services?

2021-08-23 Thread Mantas Mikulėnas
it's a symlink and the real socket is in /run.) If it's a real socket, does it get re-created after 'rm'? > > > Nishant > > On Fri, 20 Aug 2021 at 16:43, Mantas Mikulėnas wrote: > >> On Fri, Aug 20, 2021 at 2:11 PM Mantas Mikulėnas >> wrote: >> >>&

Re: [systemd-devel] How does journald talks to other services?

2021-08-20 Thread Mantas Mikulėnas
On Fri, Aug 20, 2021 at 2:11 PM Mantas Mikulėnas wrote: > On Fri, Aug 20, 2021 at 2:10 PM Nishant Nayan > wrote: > >> Regarding the below point : >> c) The service prints to stdout/stderr, but systemd attaches the >> service's stdout/stderr to a pipe which

Re: [systemd-devel] How does journald talks to other services?

2021-08-20 Thread Mantas Mikulėnas
only when we want to redirect it somewhere else? > StandardOutput=journal is the default setting. -- Mantas Mikulėnas

Re: [systemd-devel] Mobile broadband modems support in systemd-networkd

2021-08-20 Thread Mantas Mikulėnas
aces (using iwd to > manage the Wi-Fi connection). Is there any work afoot to get > systemd-networkd to set up the IP address info in concert with > ModemManager, or do I have to force NetworkManager to play nicely with > systemd-networkd? > Wouldn't e.g. `mbimcli` configure IP on its own? -- Mantas Mikulėnas

Re: [systemd-devel] How does journald talks to other services?

2021-08-20 Thread Mantas Mikulėnas
ibsystemd). See [Service] StandardOutput= in systemd.service(5). d) Journald also reads kernel messages (dmesg) from the /dev/kmsg device. Programs can actually write to /dev/kmsg to generate dmesg messages and journald will capture them. -- Mantas Mikulėnas

Re: [systemd-devel] [EXT] Re: Q: "Industry Standard" unit files

2021-08-03 Thread Mantas Mikulėnas
right that the service was written for inetd originally, and one of > the problems found with systemd is that the process ends with varying exit > codes (mostly 1 and 3) that systemd considers to be not successful. > The mapping of exit codes can be overridden -- if the process itself considers 1 and 3 to be successful, then "SuccessExitStatus=0 1 3" would help. Prefixing the command with a "-" (as in "ExecStart=-/opt/foo") is also an option, if you want to ignore *all* exit codes; many inetd-converted services do this to avoid accumulating failed instances (e.g. after botnet probes). -- Mantas Mikulėnas

Re: [systemd-devel] Q: "Industry Standard" unit files

2021-08-03 Thread Mantas Mikulėnas
On Tue, Aug 3, 2021, 11:36 Ulrich Windl wrote: > Hi! > > I'm not into socket units, but maybe one one is could have a look at the > unit files shown in https://serverfault.com/q/1070757/407952. Those files > are from a commercial product (Backup Software) > I wonder if these look OK, or (what I

Re: [systemd-devel] How to restart my socket activated service safely ?

2021-07-27 Thread Mantas Mikulėnas
is listening, it'll start queuing the requests even if the service isn't yet running (since it's a socket-activated service after all) and the number of lost requests should be minimal. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel

Re: [systemd-devel] Does systemctl unmask enables a service also?

2021-07-17 Thread Mantas Mikulėnas
On Sat, Jul 17, 2021, 22:23 Debraj Manna wrote: > Hi > > I have read this article > and it appears to > me that unmasking and starting a service should also enable it back. But on > trying it does not appear to happen like that > >

Re: [systemd-devel] Does After=systemd-udevd.service make my service run after the services started by udev rules?

2021-07-13 Thread Mantas Mikulėnas
p after it has already declared "ready". -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Mounting a new device to a mount point with an old (auto-generated) but inactive mount unit triggers an immediate unmount

2021-07-08 Thread Mantas Mikulėnas
"Warning: myfancyservice.service changed on disk. Run 'systemctl > daemon-reload' to reload units." > systemd can't make non-systemd tools (such as `mount`) display warnings. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Restricting swap usage for a process managed via systemd

2021-07-04 Thread Mantas Mikulėnas
; drwxr-xr-x 87 root root 0 Jul 2 15:05 system.slice > drwxr-xr-x 7 root root 0 Jun 30 15:22 user.slice > ubuntu@vrni-platform:/tmp/debraj$ sudo umount /tmp/tuk > > Can someone suggest what configuration I am missing? > > > ___ > systemd-devel mailing

Re: [systemd-devel] [systemd]: sd-sync lead to kernel panic

2021-06-30 Thread Mantas Mikulėnas
in/sync` from shell, since it does exactly the same thing. In general there should be nothing special about systemd calling sync(), it's purely a kernel problem. The only difference that I can think of is that systemd begins the sync() while all services are shutt

Re: [systemd-devel] /var/lib/machines

2021-06-26 Thread Mantas Mikulėnas
On Sat, Jun 26, 2021, 14:06 Johannes Köhler wrote: > Hi systemd maintainer, again! > > with my last post i got a hint to > follow the netiquette. My netiquette > with now, was: read manpages and html > searches before asking stupid questions... :) > > So to say, i am happy about private messages

Re: [systemd-devel] Alias for SMTP providers [ie. mutually exclusive service alternatives]

2021-06-16 Thread Mantas Mikulėnas
utdown and if the goal of After=postfix is "run my ExecStop before postfix gets stopped", then ability to queue doesn't help all that much. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Why are core dumps named vgcore.*?

2021-06-15 Thread Mantas Mikulėnas
dumpctl is fine with missing/removed coredump files -- that's part of the normal operation; actual dumps are cleaned out much faster than the corresponding journal entries. You'll probably already see some of them marked "missing" in the list. -- Mantas Mikulėnas

Re: [systemd-devel] What is the recommended way of announcing a TCP port?

2021-06-14 Thread Mantas Mikulėnas
If you only care about processes on the same system – why not put the actual socket in /run, as an AF_UNIX socket? That's mostly what /run is for. On Tue, Jun 15, 2021, 04:18 John Ioannidis wrote: > I have an instanced service that gets started and stopped by another > service: *alice.service

Re: [systemd-devel] systemd.socket man pages update suggestion

2021-06-12 Thread Mantas Mikulėnas
". > > Add: > One or more of the associated service files > StandardInput/StandardOutput/StandardError options should be set to > socket for this option to work. > IMHO that is a bit odd. I don't really see the reason why the option wouldn't work with any Accept

Re: [systemd-devel] Script in system-sleep that makes an HTTP post

2021-06-11 Thread Mantas Mikulėnas
perror doesn't define exit statuses. It defines syscall return codes and libc function errno values, which usually have nothing to do with the exit code of the whole process. Aside from the convention that "non-zero = failure", you have to look at the docs of the whole program (e.g. if it's a

Re: [systemd-devel] Fwd: syntax checker

2021-06-02 Thread Mantas Mikulėnas
/var/run/log ramfs... > That's already the default if /var/log doesn't exist. To ensure /run is always used, you should set "Storage=volatile" in journald.conf. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.or

Re: [systemd-devel] Adding USB ID to hwdb/usb.ids

2021-06-01 Thread Mantas Mikulėnas
On Wed, Jun 2, 2021, 08:04 Greg KH wrote: > On Tue, Jun 01, 2021 at 09:38:37PM +0200, Michael Biebl wrote: > > Am Di., 1. Juni 2021 um 20:44 Uhr schrieb Greg KH < > gre...@linuxfoundation.org>: > > > Works for me! Make sure you are not trying to connect to 'https'. > > > > No https? Why? > >

Re: [systemd-devel] DHCP6 client failing when /etc is mounted as overlayfs

2021-06-01 Thread Mantas Mikulėnas
ngs which use the machine-id anyway... > Thanks > > -- > Alessandro Tagliapietra > > > On Tue, Jun 1, 2021 at 12:13 AM Mantas Mikulėnas > wrote: > >> On Tue, Jun 1, 2021 at 10:07 AM Alessandro Tagliapietra < >> tagliapietra.alessan...@gmail.com> wrote: >&

Re: [systemd-devel] DHCP6 client failing when /etc is mounted as overlayfs

2021-06-01 Thread Mantas Mikulėnas
: Failed to set DUID-EN: No medium found > eth0: DHCP6 CLIENT: Failed to set DUID: No medium found > My guess is that it's related to /etc/machine-id somehow becoming inaccessible, since networkd's DUID-EN (DUIDType=vendor) is based on that. -- Mantas Mikulėnas _

Re: [systemd-devel] socket activation socket state

2021-05-28 Thread Mantas Mikulėnas
ttps://lists.freedesktop.org/mailman/listinfo/systemd-devel > -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] On the IRC situation

2021-05-25 Thread Mantas Mikulėnas
ative). So if there are no objections I'll make a PR to update systemd's README files to "s/ freenode.org/libera.chat/g" sometime later. -- Mantas Mikulėnas (grawity) ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.

Re: [systemd-devel] Alias for template/instance service unit

2021-04-22 Thread Mantas Mikulėnas
o other features: 1. Custom target units, which allow you to *start* all instances at once; 2. Wildcard support in `systemctl` commands, which allows you to see the status of all loaded instances at once (systemctl status "foo@*.service"). -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] "Correct" way to obtain DHCP lease info?

2021-04-22 Thread Mantas Mikulėnas
in the network? (If it's to check that the physical interface is working, then just the fact that you somehow acquired a lease would be enough. no?) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] systemd-resolve SERVFAIL on lookups found by upstream DNS server

2021-04-17 Thread Mantas Mikulėnas
re making the query from.) I *think* this was fixed in git a few weeks ago. There's already an Ubuntu bug report for the same issue: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1921636 -- Mantas Mikulėnas ___ systemd-devel mailing list systemd

Re: [systemd-devel] Q: asymmetry of ExecStop and ExecStart

2021-04-14 Thread Mantas Mikulėnas
itionPathExists=/usr/bin/... > > > > [Service] > > Type=oneshot > > TimeoutSec=10 > > ExecStart=/usr/bin/... > > > > Type=oneshot services go from "starting" directly to "dead"; they are > never active and so there is nothing to stop. >

Re: [systemd-devel] .local searches not working

2021-04-09 Thread Mantas Mikulėnas
On Sat, Apr 10, 2021, 02:02 Mantas Mikulėnas wrote: > On Fri, Apr 9, 2021, 22:28 Phillip Susi wrote: > >> >> Silvio Knizek writes: >> >> > So in fact your network is not standard conform. You have to define >> > .local as search and routing domain

Re: [systemd-devel] .local searches not working

2021-04-09 Thread Mantas Mikulėnas
On Fri, Apr 9, 2021, 22:28 Phillip Susi wrote: > > Silvio Knizek writes: > > > So in fact your network is not standard conform. You have to define > > .local as search and routing domain in the configuration of sd- > > resolved. > > Interesting... so what are you supposed to name your local,

Re: [systemd-devel] Is it meant to be possible to set IO[Read|Write]BandwidthMax on a slice ?

2021-04-08 Thread Mantas Mikulėnas
cgroups v2, and vice versa. (Hmm, wasn't there an option to choose which controllers to assign to v1 and which ones to v2?) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Session-specific user services

2021-04-02 Thread Mantas Mikulėnas
s like it would make it *less* useful with two sessions, because you would have no way to run a second instance for the other session anyway. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] help with sockets and services and inetd-like workflows

2021-03-22 Thread Mantas Mikulėnas
I would suggest adding StandardError=journal, so that you get to see the Python exceptions when they happen. On Mon, Mar 22, 2021, 04:21 Matt Zagrabelny wrote: > Greetings, > > I'm running systemd 241-7~deb10u6, Debian 10 (Buster). > > I am attempting to have an inetd like service run, where

Re: [systemd-devel] Activate netdev only on demand (e.g. for wireguard connection)

2021-03-11 Thread Mantas Mikulėnas
0/0 because I don't know the "wanted" destinations in advance, but at the same time I don't want the system to *default* to sending all my traffic halfway around the world and back, so it has to be "on demand". People are in a hurry to suggest "openvpn is meh, use wg-quick" a

Re: [systemd-devel] Q; syslog.socket dependency

2021-03-11 Thread Mantas Mikulėnas
On Thu, Mar 11, 2021, 13:17 Ulrich Windl wrote: > Hi! > > I have a unit that uses logger, and I want to run it after syslog is > available. So I added syslog.socket as dependency, but it fails: > Mar 11 12:11:02 jeos1 systemd[1]: syslog.socket: Socket service > syslog.service not loaded,

Re: [systemd-devel] use RTC date/time to set system date time

2021-03-01 Thread Mantas Mikulėnas
Normally I think systemd expects the kernel to do this on its own. On Mon, Mar 1, 2021, 12:31 Belisko Marek wrote: > Hi, > > I have a case when a board boots without network connection but RTC > have the correct date/time. Does systemd use RTC date/time to set > systemd time or it needs to be

Re: [systemd-devel] Looking for known memory leaks triggered by stress testing add/remove/up/down interfaces

2021-02-19 Thread Mantas Mikulėnas
ned/published long after the commits to fix the issues > are made. We cannot retroactively change git commits, that's just not > how this works. > This *could* work with git notes, it seems --grep searches them as well. -- Mantas Mikulėnas ___ systemd

Re: [systemd-devel] timedate1 permissions

2021-02-17 Thread Mantas Mikulėnas
nge the time and timezone? > > Regards, > Greg Wilson-Lindberg > ___ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/systemd-devel > -- Mantas Mikulėnas __

Re: [systemd-devel] timesyncd log messages galore

2021-02-11 Thread Mantas Mikulėnas
afterwards. Currently it has recorded 1.988s total CPU usage after 12 days of uptime. > So the punchline is, that timesynd is not really usable with ipv6 > networks? Am I getting that correct? > No, sounds more like it's just not really usable with *your* IPv6

Re: [systemd-devel] systemd-resolved only returns v6 addresses

2021-01-27 Thread Mantas Mikulėnas
Tatschner wrote: > On Wed, 2021-01-27 at 13:10 +0200, Mantas Mikulėnas wrote: > > So it is entirely possible that when resolved makes two queries, one > > for A records and another for , it receives conflicting > > information about the target simultaneously being an al

Re: [systemd-devel] systemd-resolved only returns v6 addresses

2021-01-27 Thread Mantas Mikulėnas
___ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/systemd-devel > -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Why systemd-nspawn is slower than docker, podman and qemu?! how to Improve nspawn performance?

2021-01-25 Thread Mantas Mikulėnas
On Mon, Jan 25, 2021, 12:56 Badr Elmers wrote: > Hi, > Why nspawn is slow compared to docker podman and even qemu?! > CPU tasks take twice of the time it takes in docker, podman or qemu > > here I filled a request to improve nspawn performance which contain the > steps and the full test result:

Re: [systemd-devel] automount behavior with multiple IPS

2021-01-24 Thread Mantas Mikulėnas
On Sun, Jan 24, 2021, 20:58 Weatherby,Gerard wrote: > When systemd-automount queries an NFS server with multiple IPs, does it > try all of the them (the default behavior of the similar autofs package) or > just use one, or something else? > Systemd does not have any special handling for NFS –

Re: [systemd-devel] Antw: [EXT] Re: successful mount starts a service - how?

2021-01-19 Thread Mantas Mikulėnas
On Tue, Jan 19, 2021, 09:50 Ulrich Windl wrote: > >>> Andrei Borzenkov schrieb am 19.01.2021 um 06:30 > in > Nachricht <3a365c71-004e-031e-4153-80c376d80...@gmail.com>: > > 19.01.2021 04:00, lejeczek пишет: > >> hi guys. > >> > >> I'm fiddling with it but have run out of options/ideas. > >>

Re: [systemd-devel] service killed when usb device reloaded

2021-01-13 Thread Mantas Mikulėnas
On Wed, Jan 13, 2021, 20:17 Belisko Marek wrote: > Hi, > > I'm facing a strange issue. I have gsm modem and when modem is > restarted (removed from usb bus and plugged back) one of services is > restarted (with enabled systemd debug level): > > Jan 07 09:07:00 device systemd[1]: Received SIGCHLD

Re: [systemd-devel] SystemD dependency problem

2020-12-22 Thread Mantas Mikulėnas
ering loop: * yourthing.service has no After=, but it runs `docker` commands and cannot finish until docker.service is up; * docker.service explicitly has After=network-online.target and won't start until that target is reached; * but network-online.target has an implicit After=yourthing.service (as

Re: [systemd-devel] Udev rules on reboot

2020-12-20 Thread Mantas Mikulėnas
On Sun, Dec 20, 2020, 21:37 Adi Ml wrote: > Yes. Thats exactly what I mean (what mantas said)- ATTR{authorized}="0". > I would like to have a usb whitelist via udev and want it to be enforced on > devices which connected pre boot too. > > authorized_default=0- it seems the same like >

Re: [systemd-devel] Mount options for ESP, LUKS and rootfs in automatic partition discovery and mounting

2020-12-20 Thread Mantas Mikulėnas
On Sun, Dec 20, 2020 at 3:49 PM Lennart Poettering wrote: > On Sa, 19.12.20 15:31, Mantas Mikulėnas (graw...@gmail.com) wrote: > > > > THere's an RFE issue open asking to support rootflags= on the kernel > > > cmdline for the automatically discovered rootfs (that's the

Re: [systemd-devel] Udev rules on reboot

2020-12-20 Thread Mantas Mikulėnas
t;? What do you mean by that? I am not following... > I suspect they mean something like ATTR{authorized}="0", which tells the kernel to completely ignore that USB device. (Though it's more common to set authorized_default=0 on all hubs, then allow only trusted devi

Re: [systemd-devel] Mount options for ESP, LUKS and rootfs in automatic partition discovery and mounting

2020-12-19 Thread Mantas Mikulėnas
On Sat, Dec 19, 2020, 14:40 Lennart Poettering wrote: > On Sa, 28.11.20 01:26, Bastien Traverse (neit...@esrevart.net) wrote: > > > Hello everyone, > > > > Is it possible to specify mount options for ESP, root and LUKS devices > when > > using automatic partition discovery and mounting with no

Re: [systemd-devel] [PATCH] man: add instruction on clearing file descriptors

2020-12-07 Thread Mantas Mikulėnas
I'm not sure if it's more portable. I recall FreeBSD only exposing 0–2 in its /dev/fd by default unless you mounted a separate virtual filesystem there. NetBSD seems to always have 64 devnodes no matter how many fds. I don't think there's a *good* portable method (which is why closerange() is

Re: [systemd-devel] Timestamps in journal during suspend/resume

2020-12-01 Thread Mantas Mikulėnas
On Tue, Dec 1, 2020 at 2:31 PM Mantas Mikulėnas wrote: > On Tue, Dec 1, 2020 at 1:46 PM Paul Menzel < > pmenzel+systemd-de...@molgen.mpg.de> wrote: > >> >> At least to me, some of the entries with timestamps from resuming should >> have timestamps from suspend

Re: [systemd-devel] Timestamps in journal during suspend/resume

2020-12-01 Thread Mantas Mikulėnas
ch does not advance at all while the system is suspended -- so trying to convert it to realtime will often give wrong results (the same problem as in 'dmesg -e') unless you do something smart with combining it with journald's __REALTIME_TIMESTAMP. -- Mantas Mikulėnas __

Re: [systemd-devel] Order between systemd-networkd and udev

2020-11-30 Thread Mantas Mikulėnas
On Mon, Nov 30, 2020, 23:25 Zheng, Fam wrote: > Hi, > > Currently in systemd-networkd.service we have > > After=... systemd-udevd.service ... > > I know the point of it has been for tuntap as pointed out by comments > above, but I do wonder what ensures the ordering of NIC drivers (as > loaded

Re: [systemd-devel] Mounting / as writable without in `/etc/fstab`

2020-11-26 Thread Mantas Mikulėnas
ow your distro's initramfs wants to work, but at least that's what Arch does -- since fsck is run from the initramfs, there's not much point in later mounting it ro at all. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] How to turn off the ntp time synchronization in default when power on

2020-11-24 Thread Mantas Mikulėnas
On Tue, Nov 24, 2020, 21:43 An Liu wrote: > HI > > timedatectl set-ntp false > > > what is the diff between this and > systemctl disable ntp > The timedatectl command controls only systemd's own NTP client (systemd-timesyncd.service). It doesn't care about other NTP clients such as

Re: [systemd-devel] state of journal-upload and journal-remote?

2020-11-22 Thread Mantas Mikulėnas
the journal for logs and > forward them on their own, without using any of the > journal-upload/journal-remote stuff… > I'm less sure about the HTTP bits, but I think journal-remote can be useful on its own, as it also takes input from stdin (doing the opposite of

Re: [systemd-devel] systemd.automount issue: Failed to initialize automounter: Operation not permitted

2020-11-16 Thread Mantas Mikulėnas
Automounts themselves are established by a magic kernel-level mount (specifically they're "autofs" mounts), which requires root privileges. Your systemd --user instance runs unprivileged, as your own UID, and doesn't have the privilege to mount autofs (or anything else that isn't FUSE). On Tue,

Re: [systemd-devel] Journald retaining logs for only 10 days

2020-11-14 Thread Mantas Mikulėnas
On Sat, Nov 14, 2020, 20:17 Mantas Mikulėnas wrote: > On Sat, Nov 14, 2020 at 11:31 AM Nikolaus Rath wrote: > >> Hello, >> >> I just discovered that on one of my systems journald only retains log >> entries for about 10 days: >> >> # journalctl | head -

Re: [systemd-devel] Journald retaining logs for only 10 days

2020-11-14 Thread Mantas Mikulėnas
(Which is still not quite the same as 2.4 GB of *.journal files, but there's always going to be some discrepancy due to how a binary database allocates space.) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] How to dynamically retrieve my service name?

2020-11-10 Thread Mantas Mikulėnas
gt; Best regards, > Etienne Doms > ___ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/systemd-devel > -- Mantas Mikulėnas _

Re: [systemd-devel] ssh.service in rescue.target

2020-11-06 Thread Mantas Mikulėnas
On Fri, Nov 6, 2020, 23:31 Phillip Susi wrote: > > Lennart Poettering writes: > > > Are you running systemd? If so, please get rid of "killproc". It will > > interfere with systemd's service management. > > I see.. apparently Ubuntu still has it around. How does systemd handle > it? For

Re: [systemd-devel] ssh.service in rescue.target

2020-11-06 Thread Mantas Mikulėnas
On Fri, Nov 6, 2020, 18:38 Phillip Susi wrote: > > Lennart Poettering writes: > > > What is "killprocs"? > > > > Is something killing services behind systemd's back? What's that > > about? > > It's the thing that kills all remaining processes right before shutdown > that we've had since the

Re: [systemd-devel] DisplayPort display non-persistent device naming

2020-10-29 Thread Mantas Mikulėnas
It could be either, but these names are assigned by the kernel – not by udev. On Thu, Oct 29, 2020, 22:53 Marcin Kocur wrote: > Hello, > > this is the output of turning off and on my display (using power button): > > > [mk@linux ~]$ udevadm monitor > monitor will print the received events for:

Re: [systemd-devel] systemctl reboot/halt with non-privilege user

2020-10-28 Thread Mantas Mikulėnas
On Wed, Oct 28, 2020, 13:40 An Liu wrote: > Hi, folks, > > I used to type systemctl reboot with non-privileged users, and to my > surprise, the system goes down for the reboot. > > I've tested in both debian and centos 7, they act the same, however, > systemctl halt will prompt you to enter

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-16 Thread Mantas Mikulėnas
On Fri, Oct 16, 2020 at 4:13 PM Thomas HUMMEL wrote: > > On 16/10/2020 13:22, Mantas Mikulėnas wrote: > > > But I think you're still confusing the two different kinds of "sessions" > > that exist here. PAM open_session creates a PAM session, which > > eventua

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-16 Thread Mantas Mikulėnas
o PAM not authorizing it (or due to some other reason), this will still not prevent pam_systemd from registering the session and creating user-.slice and making it appear in `loginctl`. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-12 Thread Mantas Mikulėnas
On Mon, Oct 12, 2020 at 8:16 PM Thomas HUMMEL wrote: > Thanks for your answer. Still I'm quite confused. > > On 12/10/2020 18:21, Mantas Mikulėnas wrote: > > > > It's a worker process which calls pam_open_session() and > > pam_close_session() on behalf of the user@.s

Re: [systemd-devel] Crond session, pam_access and pam_systemd

2020-10-12 Thread Mantas Mikulėnas
tially they provide very similar functions, especially with linger active. I also noticed that if the user gets lingered there is no such error > message (which makes me think about the creation of the crond session > through the systemd --user instance running a job) > Linger means the --use

Re: [systemd-devel] Q on serial-getty

2020-10-07 Thread Mantas Mikulėnas
; "unlimited", why not use that string? > This was fixed in systemd-235 several years ago. https://github.com/systemd/systemd/commit/21771f338d268e06dc9a10b9b08b14ff8217d4be -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Q: logrotate and "systemctl kill -s HUP ..."

2020-09-30 Thread Mantas Mikulėnas
reload foo.service`. Sending HUP to ExecStartPre and ExecStartPost doesn't make sense, since those are supposed to be short-running commands – they are not allowed to actually *have* daemons. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] 99-default.link which such a high number ?

2020-09-25 Thread Mantas Mikulėnas
On Fri, Sep 25, 2020, 17:46 Francis Moreau wrote: > Hello, > > I want to override /usr/lib/systemd/network/99-default.link so I need > to create a file starting with "99-" prefix. > > This doesn't seem logical to me because the numbers are supposed to > encode the priority however nothing is

Re: [systemd-devel] spurious failures of resolved

2020-09-24 Thread Mantas Mikulėnas
link: usb0 > > -- Information acquired via protocol DNS in 5.8ms. > -- Data is authenticated: no > > Did I misconfigure something? Did I misread resolved.conf(5) which states > “Use > the construct "~." to use the system DNS server defined with DNS= > preferabl

Re: [systemd-devel] systemd doesn't see ttyPS0 devices from udev

2020-09-23 Thread Mantas Mikulėnas
doesn't properly inform systemd about the new device. > >What does "udevadm info -a /dev/ttyPS0" output? > I can not get a console from ttyPS0, so I can not run "udevadm info -a > /dev/ttyPS0" in the target(xilinx pynq) board. > Try booting wit

Re: [systemd-devel] systemd doesn't see ttyPS0 devices from udev

2020-09-22 Thread Mantas Mikulėnas
s, but that should have been already covered by the existing upstream rules: 99-systemd.rules:12:SUBSYSTEM=="tty", KERNEL=="*tty[a-zA-Z]**|hvc*|xvc*|hvsi*|ttysclp*|sclp_line*|3270/tty[0-9]*", TAG+="systemd" -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

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

2020-09-07 Thread Mantas Mikulėnas
ke Kai *has* configured it that way, otherwise sd-encrypt wouldn't have had any effect whatsoever. "sd-encrypt" is the mkinitcpio module (hook) which adds the standard systemd-cryptsetup(-generator) & systemd-ask-password binaries. systemd-gpt-auto-generator should work, as it ge

Re: [systemd-devel] Journal message timestamps

2020-09-07 Thread Mantas Mikulėnas
ame first by comparing boot > ids. But that would still not be perfect since we could write that out > only late (i.e. after /var becomes writable), so the order before that > could not be reconstructed either if the system doesn't get that far. > Hmm, but if there's no /var in

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

2020-09-07 Thread Mantas Mikulėnas
S laptop I've already had problems after merely adding/deleting boot entries too many times, and I *would not* want a write to happen on every single boot. As much as I distrust the FAT implementations in my computers' firmwares, I still trust them a little bit more than their EFI variable NVRAM m

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

2020-08-28 Thread Mantas Mikulėnas
On Fri, Aug 28, 2020, 10:06 Ulrich Windl wrote: > >>> Mark Corbin schrieb am 27.08.2020 um 12:33 in > Nachricht > : > > 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 how

Re: [systemd-devel] protecting sshd against forkbombs, excessive memory usage by other processes

2020-08-12 Thread Mantas Mikulėnas
number of processes/tasks (the default in user-.slice.d is TasksMax=33% of...something, but it could be lowered to e.g. 10% or to 4096) without affecting the service itself. So I'm sure that sshd.service and user-0.slice could be tweaked somehow to give root a higher priority at cgroup level,

Re: [systemd-devel] systemd-networkd and interface names

2020-08-10 Thread Mantas Mikulėnas
That seems to be working as expected. The initial, kernel-assigned name is always going to be an incrementing eth#, wlan#, or something similar. It's up to the userspace (i.e. udev) to rename it to something custom. However, interfaces can only be renamed while they're *not* up, otherwise the

Re: [systemd-devel] Wrong interface name

2020-08-06 Thread Mantas Mikulėnas
t; The kernel does not remember anything across reboots. The only way to make a custom name persistent is to rename it from userspace every single time (e.g. udev rules). -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Upstreaming systemd patch

2020-07-30 Thread Mantas Mikulėnas
t; Pull requests are usually made from your own personal repository. Use Github's "Fork" feature to get a writable copy of the repository, then `git remote add` its URL and push there. For example: git remote add fork https://github.com//systemd git push -u fork -- Mantas Mikulėn

Re: [systemd-devel] systemd.timer every X days?

2020-07-28 Thread Mantas Mikulėnas
I'd create a single raidcheck.service that runs daily and calls a script that itself determines which device to check, e.g. /dev/md$[dayofyear % 16]. On Sun, Jul 26, 2020, 22:56 Ian Pilcher wrote: > My NAS has 16 MD RAID devices. I've created a simple service > (raidcheck@.service) that will

Re: [systemd-devel] vt220 default for serial console still relevant?

2020-07-14 Thread Mantas Mikulėnas
will just show up as garbage on screen. Google tells me VT421 supported sixel graphics. I'm not sure if any programs make use of that nowadays, but if they do, then trying to use TERM=vt421 with a terminal that doesn't do sixel will result in more garbage on screen. There are various other differen

Re: [systemd-devel] Child of daemon sending SIGCHLD to systemd

2020-07-01 Thread Mantas Mikulėnas
ith simple, other daemons wouldn't be able to properly order After=freecusd, but with Type=notify you only need to call sd_notify("READY=1") at the proper moment.) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

  1   2   3   4   5   6   7   8   9   10   >