Re: [systemd-devel] Service lifetime

2025-07-17 Thread Mantas Mikulėnas
UN as I know it needs to be “short lived” but not > sure what that means in practice. That’s why I thought about splitting it > out, with at, etc > > On Jul 17, 2025, at 7:40 AM, Mantas Mikulėnas wrote: > >  > If you need multiple instances, you could also use `systemd-ru

Re: [systemd-devel] Service lifetime

2025-07-17 Thread Mantas Mikulėnas
nd start > our recovery program from udev rule using "at" to run outside of udev > processing. > > Any other possibilities here? > > On Sun, Jul 13, 2025 at 10:23 PM Mantas Mikulėnas > wrote: > > > > There is only ever a single instance of a unit with a sp

Re: [systemd-devel] Service lifetime

2025-07-13 Thread Mantas Mikulėnas
There is only ever a single instance of a unit with a specific name, since the name is how you control it. If multiple instances are needed, they need to have unique names, usually through a template unit (foo@.service → foo@$env{something}.service). On Mon, Jul 14, 2025, 06:07 Anthony Rossomano

Re: [systemd-devel] systemd-tty-ask-password-agent, new warning

2025-07-09 Thread Mantas Mikulėnas
Does it also move "systemd-ask-password" to -extra? For a distro that targets embedded devices (i.e. where services aren't going to use systemd's ask-password facility because nobody will ever be around to manually respond to such prompts for services *anyway*), I think it would be fine to leave o

Re: [systemd-devel] How to share a device in multi-seats

2025-07-07 Thread Mantas Mikulėnas
What kind of device and how will it be used? On Mon, Jul 7, 2025, 08:25 Zhanbang He wrote: > It seams that udev can not share one device into multi seats? what should > I do? >

Re: [systemd-devel] Howto detect a program/service is started by systemd?

2025-06-30 Thread Mantas Mikulėnas
No, it really shouldn't detect "started by systemd" at all. These are several independent things and you shouldn't mix them all together. Regarding startup, systemd services have several distinct Type= settings with different expectations and the program has no way to reliably detect which one is

Re: [systemd-devel] Changing database formats for systemd-journald

2025-06-28 Thread Mantas Mikulėnas
On Thu, Jun 26, 2025 at 6:27 PM Gunnar Guðvarðarson wrote: > I have attempted to use systemd-journald as a centralized log collector, > it works fine and the interface provided by journalctl is very convenient > to quickly find things, following logs and other things. > > But I quickly discovered

Re: [systemd-devel] systemd link file rename eth0 do not take effect

2025-06-16 Thread Mantas Mikulėnas
nfsroot= causes the interface to be brought up very early, before udev starts, and before it has a chance to apply its rules and .link files. Before kernel 6.2, it was not possible to rename interfaces that were already "up" (see linux commit bd039b5ea2a91). On another note, even though Nam

Re: [systemd-devel] How to get argument list for methods

2025-06-16 Thread Mantas Mikulėnas
GLib's `gdbus introspect` can show you the parameter names if they're included in the introspection XML: gdbus introspect -y -d org.freedesktop.systemd1 -o /org/freedesktop/systemd1/unit/cups_2eservice But introspection is mainly for use by language bindings (e.g. perl-dbus) – it is not a sub

Re: [systemd-devel] Suggestion for " failed with result 'dependency'."

2025-06-05 Thread Mantas Mikulėnas
On 05/06/2025 10.00, Windl, Ulrich wrote: Hi! I wrote a simple service that did not start after boot. The joural message was: REST-server.service: Job REST-server.service/start failed with result 'dependency'. Wouldn’t it be helpful to log WHICH dependency failed? As I started the server

Re: [systemd-devel] accepting dhcp address only from a specific mask

2025-06-02 Thread Mantas Mikulėnas
The second address looks like it comes from link-local, not from DHCP. I suspect you have a higher-priority .network file that also enables DHCP like yours does, but *also* sets "LinkLocalAddressing=both", like some of systemd's built-in example .network files tend to do. Check `networkctl status e

Re: [systemd-devel] Multiple log namespaces for a single service?

2025-05-20 Thread Mantas Mikulėnas
I don't know about journald's design performance, but at "every 40ms", I'd probably second the suggestion to switch to something else for DEBUG-level stuff (while perhaps keeping regular journald for regular INFO messages), although instead of periodic-rotation-based logs consider some kind of "rin

Re: [systemd-devel] Bridging a wifi access point?

2025-04-15 Thread Mantas Mikulėnas
On Mon, Apr 14, 2025 at 7:23 PM Hadmut Danisch wrote: > Maybe let's start at the top end: > > > does systemd/networkd support wlan in ap mode? >From what I see: Only the bare minimum; it supports creating new wlan netdevs of 'ap' type through an .netdev file, but not switching existing ones).

Re: [systemd-devel] The dependencies between systemd-resolved and dbus.socket

2025-04-14 Thread Mantas Mikulėnas
On Fri, Apr 11, 2025 at 4:14 PM Jeremy Su wrote: > Hi, > > I meet a problem that systemd-resolved is not able to resolve the DNS. > > systemd-resolved[1237]: sd-bus: starting bus bus-api-resolve by connecting > to /run/dbus/system_bus_socket... > systemd-resolved[1237]: Added inotify watch for /r

Re: [systemd-devel] Bridging a wifi access point?

2025-04-14 Thread Mantas Mikulėnas
On Mon, Apr 14, 2025, 18:47 Hadmut Danisch wrote: > > On 14.04.25 18:36, Mantas Mikulėnas wrote: > > I don't remember seeing client-mode wlan interfaces working as bridge > > members on regular Linux kernel. Did that change recently? > > > I actually didn'

Re: [systemd-devel] The dependencies between systemd-resolved and dbus.socket

2025-04-14 Thread Mantas Mikulėnas
On Mon, Apr 14, 2025, 17:20 Jeremy Su wrote: > Hi Mantas, > > Thank you for your reply. > > > Mantas Mikulėnas 於 2025年4月14日 週一 下午5:58寫道: > > > > On Fri, Apr 11, 2025 at 4:14 PM Jeremy Su wrote: > >> > >> Hi, > >> > >> I m

Re: [systemd-devel] systemd-timedated support for NTP SRV records

2025-04-14 Thread Mantas Mikulėnas
On Mon, Apr 14, 2025, 18:35 SCOTT FIELDS wrote: > The current docs for systemd-timedated indicates the configuration only > supports explicit time server listings. > > Am I missing something in regards to support for DNS SRV records for NTP > service? > > AKA: > > _ntp._udp. > It's not supported

Re: [systemd-devel] Bridging a wifi access point?

2025-04-14 Thread Mantas Mikulėnas
On Mon, Apr 14, 2025, 17:03 Hadmut Danisch wrote: > Hi, > > a technical question: > > > I'd like to build a router on a machine with four ethernet and one wlan > adapter, using Ubuntu 24.04 server, coming with 255.4-1ubuntu8.6. I need > to build a bridge with two of the ethernets and the wlan a

Re: [systemd-devel] systemctl as root prompting for username

2025-04-13 Thread Mantas Mikulėnas
On Sun, Apr 13, 2025, 22:35 Ian Pilcher wrote: > I have never seen this before. After some recent update, systemctl is > now prompting for a username when I try to start/stop/restart a unit as > root. > ># whoami >root >[root@ampersand systemd]# systemctl restart httpd >🔐 Enter A

Re: [systemd-devel] [EXT] Re: Service not starting that wants first-boot-complete.target

2025-04-09 Thread Mantas Mikulėnas
On Wed, Apr 9, 2025, 12:52 Windl, Ulrich wrote: > Hi! > > Wasn't there an agreement that "wanting a target" is always wrong? Isn't > "After" you are after? 😉 > I've never heard of that kind of agreement. Want on its own isn't enough but *something* has to Want the target for the After to have an

Re: [systemd-devel] logind device access weird behavior

2025-04-01 Thread Mantas Mikulėnas
It sounds as if your original user is in the "video" group, so it receives the 'group' permissions and not 'other' permissions. (They are not additive in the POSIX model like they would be in Windows.) Even though the device node had no specific ACL entries, it still *had* an ACL in general, so th

Re: [systemd-devel] Please help me fix the fluidsynth.service file

2025-03-15 Thread Mantas Mikulėnas
On Fri, Mar 14, 2025 at 11:09 AM Fabian Greffrath wrote: > Am Donnerstag, dem 13.03.2025 um 10:53 +0200 schrieb Mantas Mikulėnas: > > Does Debian support having both Pulseaudio and PipeWire installed at > > the same time? If not, then I *think* you could list both of them in

Re: [systemd-devel] Please help me fix the fluidsynth.service file

2025-03-15 Thread Mantas Mikulėnas
alternatively link ~gdm/.config/systemd/user/fluidsynth.service to /dev/null, like "systemctl --user mask" would create.) > My guess here is that > the "WantedBy=default.target" line should rather get replaced by > something like "WantedBy=multi-user.target&q

Re: [systemd-devel] Please help me fix the fluidsynth.service file

2025-03-15 Thread Mantas Mikulėnas
On Fri, Mar 14, 2025 at 1:27 PM Fabian Greffrath wrote: > Am 2025-03-14 12:18, schrieb Mantas Mikulėnas: > > Depends on whether fluidsynth ever uses the pipewire API directly (in > > which case it should depend on pipewire.service) or whether it always > > goes through the

Re: [systemd-devel] bluetooth keyboard support at boot, before cryptsetup?

2025-02-27 Thread Mantas Mikulėnas
s well just import /var/lib/bluetooth/*/linkkeys into the initramfs then. I think many BT controllers support storing link keys on the controller itself though? Specifically for early boot (I kind of recall that being mentioned in BitLocker context). -- Mantas Mikulėnas

Re: [systemd-devel] Journald : from initialramfs to real root

2025-02-26 Thread Mantas Mikulėnas
On Wed, Feb 26, 2025, 21:29 Thomas HUMMEL wrote: > On 2/25/25 7:49 PM, Mantas Mikulėnas wrote: > > >> But this seems to go against the fact that intitalramfs journald can > >> show intitialramfs systemd units (which dracut services are) logs, no ? > > > > &g

Re: [systemd-devel] Journald : from initialramfs to real root

2025-02-25 Thread Mantas Mikulėnas
On Tue, Feb 25, 2025 at 8:13 PM Thomas HUMMEL wrote: > On 2/25/25 6:57 AM, Mantas Mikulėnas wrote: > > Hello, > > thanks for your answer. > > > These seem like rsyslogd has picked them up directly from the kernel > (from > > the legacy /proc/kmsg guessing

Re: [systemd-devel] Journald : from initialramfs to real root

2025-02-24 Thread Mantas Mikulėnas
sh to /var" picks up both initramfs logs and early rootfs logs at the same time. At least that's how it seems to work with Arch's systemd-based mkinitcpio initramfs. > > 2. would then initialramfs output also be forwarded to syslog ? Only in > debug mode ? > ForwardToSyslog is not retroactive. You'd need to use the pull method (rsyslogd's imjournal module) to have it forward old messages. -- Mantas Mikulėnas

Re: [systemd-devel] Device nodes not created after update

2025-02-20 Thread Mantas Mikulėnas
t; > Is there a systemd command I can run after upgrading, so the device nodes > are created without me having to reboot? > > Thanks, > Morten > > > -- Mantas Mikulėnas

Re: [systemd-devel] Add filesystem paths to InaccessiblePaths globally for some paths ?

2025-02-11 Thread Mantas Mikulėnas
"someprefix-.service.d/" feature). But of course not all services live in a mount namespace, and not all of them *want* to live in a mount namespace... and I don't think there is a way to define InaccessiblePaths= only for those which already have namespacing active in some way. -- Mantas Mikulėnas

Re: [systemd-devel] How to stop child cgroup caused by PAMName=

2025-02-06 Thread Mantas Mikulėnas
n a service stop as well? > You could, but that is effectively the same as stopping the "user-xxx.slice" similar to what you're doing now. (loginctl has "terminate-user" and "terminate-session" subcommands which do the same.) > > > Kind Regards >

Re: [systemd-devel] How to stop child cgroup caused by PAMName=

2025-02-06 Thread Mantas Mikulėnas
On Thu, Feb 6, 2025 at 10:29 AM Dluhosch, Michael < michael.dluho...@airbus.com> wrote: > Hello, > > > I want a service which executes 'startFoo.sh' exactly like a user 'Foo' > would experience it. This is my current approach: > > [Service] > ExecStart=/usr/bin/startFoo.sh > > User=Foo > > PAMName

Re: [systemd-devel] sanity check: why am I unable to manage my own directory with systemd-tmpfiles?

2025-02-03 Thread Mantas Mikulėnas
"/usr/lib/tmpfiles.d/foobar.conf". > [/usr/lib/tmpfiles.d/foobar.conf:1] Invalid age 'mM:10d'. > > That looks like correct syntax, based on that online doc I found. > > If that is correct syntax, does that mean this feature is not > supported by my version of syste

Re: [systemd-devel] sanity check: why am I unable to manage my own directory with systemd-tmpfiles?

2025-01-30 Thread Mantas Mikulėnas
dification time, specify it as something like "mM:10d" – see "Age" in tmpfiles.d(5). -- Mantas Mikulėnas

Re: [systemd-devel] Oneshot killed by timeout

2025-01-29 Thread Mantas Mikulėnas
On Wed, Jan 29, 2025 at 11:56 AM Henti Smith wrote: > On Tue, 28 Jan 2025 at 16:05, Mantas Mikulėnas wrote: > >> On Tue, Jan 28, 2025 at 4:42 PM Henti Smith >> wrote: >> >>> Good day all. >>> >>> I'm having some timeouts on a oneshot s

Re: [systemd-devel] Oneshot killed by timeout

2025-01-28 Thread Mantas Mikulėnas
each firmware update from the vendor. > It might very well be systemd itself doing this; on startup it bumps the clock either to its build timestamp or to the timestamp of "/usr/lib/clock-epoch" or "/var/lib/systemd/timesync/clock", whichever is more recent. (The latter file is periodically touched by systemd-timesyncd.) -- Mantas Mikulėnas

Re: [systemd-devel] PathChanged= in systemd-254.21-150600.4.21.1.x86_64 of SLES15 SP6

2025-01-24 Thread Mantas Mikulėnas
t; So the directory was not modified in the sense of a content change. > > I wonder: Is systemd doing “the correct thing” for PathChanged=? > I think that's what PathChanged= is documented to do, it reacts to all inotify events that indicate a change, including IN_ATTRIB – not specifically "contents". -- Mantas Mikulėnas

Re: [systemd-devel] systemd-devel] dbus-broker can be used for a "user" type bus accessible over tcp or not?

2025-01-21 Thread Mantas Mikulėnas
On 2025-01-21 11:05, Erik Slagter wrote: Duly noted! But as I already wrote to Lennart, this is for a home environment. Besides my hobby as a programmer, in daily life I am a network admin. So I am quite aware of all the dangers lurking. There is a reason I have quite a bunch of vlans, vrfs a

Re: [systemd-devel] dbus-broker can be used for a "user" type bus accessible over tcp or not?

2025-01-21 Thread Mantas Mikulėnas
On 2025-01-21 17:00, Erik Slagter wrote: On 21-01-2025 15:34, Cristian Rodríguez wrote: Come on..if you do that just configure stunnel to do what you want with PSK auth. it supports all sorts of sockets and provides you with the minimal security you need. I was going to say that stunnel can't

Re: [systemd-devel] dbus-broker can be used for a "user" type bus accessible over tcp or not?

2025-01-20 Thread Mantas Mikulėnas
om e.g. a D-Bus server (except with more overhead; I'd prefer JSON-RPC over SOAP, but anything HTTP-based is definitely not light in itself). (For my hobby projects I started with JSON-RPC over HTTPS, and ended up with JSON-RPC inside Kerberos over raw TCP – but both were almost equally self-contained "RPC servers", in that both kinds of requests were served in-process and not through any 'web' stack.) -- Mantas Mikulėnas

Re: [systemd-devel] systemctl without dbus

2025-01-09 Thread Mantas Mikulėnas
27;t even try connecting to it when running as a different user than root. -- Mantas Mikulėnas

Re: [systemd-devel] Only run service with network connection

2025-01-05 Thread Mantas Mikulėnas
overall uses a lot of GLib2, maybe it could use its g_network_monitor_can_reach() functions? It seems that it can either talk to NM or directly check kernel routes for the specified server. -- Mantas Mikulėnas

Re: [systemd-devel] Expected terminal type for sd-boot on a serial console?

2024-12-28 Thread Mantas Mikulėnas
On Sat, Dec 28, 2024, 20:38 Kevin P. Fleming < lists.systemd-de...@kevin.km6g.us> wrote: > I've got three machines which have serial (only) consoles, all of which > are using sd-boot from systemd 257. I use Minicom, in VT102 mode, to > connect to these machines, and while the console generally wor

Re: [systemd-devel] The unit asterisk.service has entered the 'failed' state with result 'timeout'

2024-12-17 Thread Mantas Mikulėnas
nding. Although we have taken reasonable steps to > ensure that this email and attachments are free from any virus, we advise > that in keeping with good computing practice the recipient should ensure > they are actually virus free. > > > On Tue, 17 Dec 2024 at 17:31, Mantas Mikulėnas

Re: [systemd-devel] The unit asterisk.service has entered the 'failed' state with result 'timeout'

2024-12-17 Thread Mantas Mikulėnas
Your status output shows the unit file being in /etc; does it differ much from the original packaged unit (if there was one)? Does `systemctl cat asterisk` show the same contents on all systems? The most common cause of a timeout is probably the unit and the daemon disagreeing on whether to report

Re: [systemd-devel] The unit asterisk.service has entered the 'failed' state with result 'timeout'

2024-12-17 Thread Mantas Mikulėnas
. We accept no > legal liability for the content of the message. Any opinions or views > presented are solely the responsibility of the author and do not > necessarily represent those of InVADE. We cannot guarantee that this > message has not been modified in transit, and this message should

Re: [systemd-devel] automatic and manual socket unit dependencies

2024-12-05 Thread Mantas Mikulėnas
atus=255 > > TasksMax=infinity > > > > [Install] > > WantedBy=multi-user.target > > Should it “Wants=” or “Requisite=” network.target, too? > Does it make sense for a manual 'systemctl start sshd' to also start the network? I'd say Requisite= would make sense, but Wants= a bit less so. (I'm reminded of situations where, if you booted into single-user mode and attempted to start udev, it would also start everything up to Xorg; it was annoying.) -- Mantas Mikulėnas

Re: [systemd-devel] user service dependency on udev's uaccess rules

2024-11-25 Thread Mantas Mikulėnas
ev rules are rerun and apps are > notified about the new situation via udev events) > I don't see logind doing that here. It seems to only set the new ACLs directly (devnode_acl_all() in seat.c) but there are no uevents that I could see during a VT switch. -- Mantas Mikulėnas

Re: [systemd-devel] xfrm using systemd-networkd?

2024-11-18 Thread Mantas Mikulėnas
7;s about it. Normally the policies would be set up using strongSwan (via IKE). -- Mantas Mikulėnas

Re: [systemd-devel] Help: Questions regarding systemd service order

2024-11-12 Thread Mantas Mikulėnas
ot.mount boot-efi.mount -.mount usr.mount > var.mount tmp.mount home.mount > Before=local-fs.target > > [Unit] > Description=mytest.service > DefaultDependencies=no > Wants=local-fs-pre.target > After=local-fs-pre.target boot.mount boot-efi.mount -.mount usr.mount > var.mount tmp.mount home.mount test.mount > Before=local-fs.target > > How come your home.mount is in local-fs-pre? That is exactly the kind of mount that would be in local-fs. In fact, why do you have *any* mounts in local-fs-pre? -- Mantas Mikulėnas

Re: [systemd-devel] system is not match systemd.link configs

2024-10-29 Thread Mantas Mikulėnas
On Tue, Oct 29, 2024, 09:51 Henti Smith wrote: > On Mon, 28 Oct 2024 at 19:17, Mantas Mikulėnas wrote: > >> On Mon, Oct 28, 2024 at 8:54 PM Henti Smith >> wrote: >> >>> Where can I find detailed information on where to find the names when >>> systemd-u

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-10-29 Thread Mantas Mikulėnas
ave to do the *opposite* – if you want systemd to react to the event of the mount showing up, then your service has to be a dependency of the mount. Even externally established mounts have virtual .mount units in systemd, so if you want your service to be started by the *event* of /mnt/share being mounted, [Install] WantedBy=mnt-share.mount would achieve that. -- Mantas Mikulėnas

Re: [systemd-devel] system is not match systemd.link configs

2024-10-28 Thread Mantas Mikulėnas
uot; or "enpX". For example, maybe: Property=DEVPATH=/devices/pci:00/:00:11.0/:06:00.0/net/eth* If networkd doesn't accept wildcards, then an udev rule may work: DEVPATH==" /devices/pci0000:00/:00:11.0/:06:00.0/net/*", NAME="mvc-sw1" eno2 would also have ATTRS{index}=="2" from the firmware. -- Mantas Mikulėnas

Re: [systemd-devel] UDEV rule not matching...why?

2024-10-09 Thread Mantas Mikulėnas
plicated as ENV by the stock rules to begin with – because ENV is easier to import from multiple layers of parents. > > And how can I find out, which value comes with which rules so I can set > my rules at the right time? > I grepped my ~/src/systemd/src for "ID_USB_INTERFACE_NUM" and saw it defined in udev-builtin-usb_id.c, then I grepped /lib/udev/rules.d for "usb_id". Generally safest to place your rules no earlier than 80-*, I guess. -- Mantas Mikulėnas

Re: [systemd-devel] UDEV rule not matching...why?

2024-10-09 Thread Mantas Mikulėnas
Did you place your rules in the correct order? ENV{ID_USB_INTERFACE_NUM} is set by usb_id in 50-udev-default.rules, so it would be available in 60-foo.rules but not in 20-foo. On Wed, Oct 9, 2024, 16:29 Daniel Spannbauer wrote: > Hello, > > > our own device (see attachement for udevadm info --at

Re: [systemd-devel] Mapped device not becoming active

2024-10-07 Thread Mantas Mikulėnas
n > > after the systemd rule. > > Not sure I grok this? Why should those devices be detected as ready, > if they don't have a file system or partition table? What's the > rationale here? > > Aren't you just proprosing some workaround for your distro's broken > udev setup? (i.e. a hosed blkid setup or so?) > What? Since when does readiness have anything to do with the block device's contents in the first place? It has always been about the device being available for use (multi-device assembled, etc) and not about what it contains. I don't remember a single case where e.g. /dev/sda would be "not ready" because it hasn't been partitioned yet. Partitioning it gives readiness to *child* devices. -- Mantas Mikulėnas

Re: [systemd-devel] Exploring Minimal Systemd in Initramfs for Faster Boot

2024-09-24 Thread Mantas Mikulėnas
er between them in the first place; IIRC normally none of the initramfs services are expected to survive the transition. -- Mantas Mikulėnas

Re: [systemd-devel] Learning Help: modeling system-user services with `run0`

2024-09-10 Thread Mantas Mikulėnas
nsient units – but I don't know if that can be granular enough to only allow userA>userB transitions. Most likely it will be "all or nothing", i.e. if you allow userA to call run0/systemd-run, that user will be able to become *any* user... A chain of predefined .service units might work better. -- Mantas Mikulėnas

Re: [systemd-devel] Is a socket with Accept=yes and ListenFIFO impossible?

2024-09-05 Thread Mantas Mikulėnas
FIFOs aren't sockets – they do not have an equivalent to accept() and there is no multiplexing of inputs; all writes to the FIFO immediately go to the "listening" file descriptor. So it's almost more like a datagram socket than a stream one, in a sense. If you want a true socket that's filesystem-

Re: [systemd-devel] Using systemd-networkd with TI switchdev switch

2024-09-03 Thread Mantas Mikulėnas
to > a wrong configuration. This can be observed in the latest systemd release > and older versions as well. > > Regards, > Matthias > -- Mantas Mikulėnas

Re: [systemd-devel] Updating network file during boot

2024-08-23 Thread Mantas Mikulėnas
I might be missing something, but... the systemd renaming is just another udev rule, one in 80-net-setup-link, isn't it? Rules for the same interface can't race with each other, they're processed linearly. (Rules for *different* interfaces can race but that happens regardless of the method.) Last

Re: [systemd-devel] Starting the sshd service on a 'non-bash' system

2024-08-03 Thread Mantas Mikulėnas
I assume you mean the inetd-style sshd@.service, not the regular sshd.service? (Or does your distribution patch systemd-style socket activation into sshd?) There is usually no dependency on a shell, unless the .service unit explicitly calls /bin/sh (note that the inetd-style socket activation uses

Re: [systemd-devel] [EXT] Some base questions around systemd-resolved

2024-08-02 Thread Mantas Mikulėnas
flags:; udp: 65494 > ;; QUESTION SECTION: > ;_sip._tcp.osvsig-mets-prod.voip.itsvic.local. IN SRV > > ;; ANSWER SECTION: > _sip._tcp.osvsig-mets-prod.voip.itsvic.local. 3600 IN SRV 20 0 5060 > osvn2-mets-prod.voip.itsvic.local. > _sip._tcp.osvsig-mets-prod.voip.itsvic.local. 3600 IN SRV 10 0 5060 > osvn1-mets-prod.voip.itsvic.local. > > ;; Query time: 0 msec > ;; SERVER: 127.0.0.53#53(127.0.0.53) > ;; WHEN: Tue Jul 30 15:38:47 AEST 2024 > ;; MSG SIZE rcvd: 179 > > Thanks for any help. > -- Mantas Mikulėnas

Re: [systemd-devel] Some base questions around systemd-resolved

2024-08-01 Thread Mantas Mikulėnas
On Fri, Aug 2, 2024, 02:04 struth wrote: > Hello systemd-devel group. > I have just started using systemd-resolved to try and achieve a goal that > I will try to explain. > I know very little about it (web searches so far) so please excuse any > silly questions or trains of thought. > I have a De

Re: [systemd-devel] help re-configuring bond and ipoib devices/networks

2024-07-29 Thread Mantas Mikulėnas
Some network types use longer or shorter addresses, not all of them try to mimic Ethernet. For example FireWire uses 64-bit hardware addresses but IP-over-FW extends it to 128-bit addresses in ARP for technical reasons, and I think it's the same for Infiniband and IPoIB. Unfortunately Networkd do

Re: [systemd-devel] Best Practices with homectl ↔ passwd/groups/shadow ?

2024-07-29 Thread Mantas Mikulėnas
I'm not sure if that's related to homectl - it seems that you're trying to specify User= and Group= within a user service. The whole "systemd --user" service manager (user@xxx.service) is unprivileged and runs as your user, so it cannot change its UID anyway or set any supplementary groups except t

Re: [systemd-devel] "OnUnitInactiveSec Timer not firing" issue

2024-07-29 Thread Mantas Mikulėnas
e re-enabled, and everything started > would be re-started). > > But most of all if the system reboots, the timer also won’t fire any more. > > > > So can anybody explain how things should work? > > > > My expectation was that an OnUnitInactiveSec timer would fire i

Re: [systemd-devel] "systemd-path systemd-search-user-unit" does not match reality

2024-07-25 Thread Mantas Mikulėnas
processing, but I'm not sure if that works these days.) -- Mantas Mikulėnas

Re: [systemd-devel] namespace problem

2024-07-18 Thread Mantas Mikulėnas
On Thu, Jul 18, 2024, 15:43 Thomas Köller wrote: > Am 18.07.24 um 14:04 schrieb Mantas Mikulėnas: > > Yes, but namespace persistence actually relies on filesystem access – > > it's implemented as a bind-mount of the namespace file descriptor (onto > > /run/netns fo

Re: [systemd-devel] namespace problem

2024-07-18 Thread Mantas Mikulėnas
hold them. So if you have any service options that cause a new *mount* namespace to be created (preventing its filesystem mounts from being visible outside the unit), then it cannot pin persistent network namespaces. (It's also a bit overkill to use ProtectSystem for this kind of script, really.) -- Mantas Mikulėnas

Re: [systemd-devel] namespace problem

2024-07-18 Thread Mantas Mikulėnas
link > > Am I missing something? Of course, the process running the root shell > invoked from the command line is ultimately also a child of systemd, > which is the system's init process. > -- Mantas Mikulėnas

Re: [systemd-devel] passing additional FDs to service

2024-07-05 Thread Mantas Mikulėnas
A service could receive multiple listeners sockets, but I don't remember systemd having an option to pass client connection sockets – and I don't think it would make much sense, as the SMTP server is likely to close the connection while the service is still running, and then systemd would definitel

Re: [systemd-devel] configuring nspawn private network (mtu & mac)

2024-07-01 Thread Mantas Mikulėnas
have missed to label the > interface names in the .nspawn file to later reference them in the .link > file? > "@if3" is not part of the name. The interface name should be just "vb-webserver" and is based directly on the nspawn name. -- Mantas Mikulėnas

Re: [systemd-devel] Question about the behavior of systemd (when requesting A/AAAA via multiple interfaces)

2024-07-01 Thread Mantas Mikulėnas
h uses the high-level ResolveHostname call), but I suspect that switching to the traditional 'dns' module (which makes low-level A/ queries to 127.0.0.53) would bypass this logic. -- Mantas Mikulėnas

Re: [systemd-devel] systemd --user managers after systemd upgrade

2024-06-29 Thread Mantas Mikulėnas
v255 added a new systemd-executor binary – instead of direct fork/setup/exec, now it's fork/exec(executor)/setup/exec(service), to avoid doing too much stuff after fork. But the binary is executed off an open fd, so even though you've upgraded it on disk, the manager is still holding onto its old c

Re: [systemd-devel] Default run0 background colors not working

2024-06-28 Thread Mantas Mikulėnas
aren't working for me, although > manually setting --background does work. Setting > $SYSTEMD_TINT_BACKGROUND makes no difference. > > Any ideas? > -- Mantas Mikulėnas

Re: [systemd-devel] Issues with Service Dependencies in Systemd

2024-05-21 Thread Mantas Mikulėnas
But since it's done to a .service, it doesn't imply any Before/After (if I remember correctly, the Wants-implies-After is .target-specific magic), so that may be what makes RequiredBy= insufficient. Use a .conf to add both Requires *and* After to immutable.service. -- Mantas Mikulėnas

Re: [systemd-devel] MulticastDNS Responder Hostname in Early Boot

2024-04-29 Thread Mantas Mikulėnas
. (But you can use "/bin/hostname -f" or "sysctl kernel.hostname" or "echo testvm > /proc/sys/kernel/hostname" or pass "systemd.hostname=testvm" as a kernel command line option to achieve the same thing.) -- Mantas Mikulėnas

Re: [systemd-devel] How to chain services driven by a timer?

2024-04-10 Thread Mantas Mikulėnas
e.service, then you need WantedBy=logrotate.service. Then each time logrotate.service is started on schedule, it'll cause your service to be started as a dependency, and the After= will actually work to define the order. -- Mantas Mikulėnas

Re: [systemd-devel] How to debug systemd services failing to start with 11/SEGV?

2024-04-10 Thread Mantas Mikulėnas
atively, run the service under the debugger: `gdb /usr/.../timesyncd`. -- Mantas Mikulėnas

Re: [systemd-devel] systemctl inaccessible when enabling DynamicUser=true

2024-03-29 Thread Mantas Mikulėnas
I don't know, but it might be related to this note: https://github.com/systemd/systemd/commit/0a207d8f234ff7ea0d7988445e38685090fc930e On Fri, Mar 29, 2024, 19:53 Nils Kattenbeck wrote: > On Fri, Mar 29, 2024 at 7:04 AM Mantas Mikulėnas > wrote: > > > > It's probab

Re: [systemd-devel] systemctl inaccessible when enabling DynamicUser=true

2024-03-28 Thread Mantas Mikulėnas
9 (249.11-0ubuntu3.12). On my laptop (Fedora > 40) I cannot reproduce the error and it works like in your case. The > other two machines are servers. > -- Mantas Mikulėnas

Re: [systemd-devel] How to automatically decrypt a disk on connection

2024-03-27 Thread Mantas Mikulėnas
On Wed, Mar 27, 2024, 16:36 Orion Poplawski wrote: > > > Can I setup a unit that gets started automatically when a particular > dev-disk-by-uuid device becomes present? > Just link it under dev-disk-foo.device.wants/ (systemctl enable, or systemctl add-wants). Alternatively, ENV{SYSTEMD_WANTS}=

Re: [systemd-devel] Forking service behind socket and service.

2024-03-27 Thread Mantas Mikulėnas
, but it can continue to run under (x)inetd or a custom `systemd-socket-activate` service (that's mainly a CLI tool for testing but it would work as a service too). -- Mantas Mikulėnas

Re: [systemd-devel] ConditionFirstBoot question

2024-03-12 Thread Mantas Mikulėnas
On Tue, Mar 12, 2024, 15:06 wrote: > Hi, > > I have a system that needs to perform some tasks on first boot. I have > this working for the most part but I had some general questions and would > like some guidance on the proper implementation. > > The tasks I need to perform on first boot include

Re: [systemd-devel] Query on sshd.socket sshd.service approaches

2024-03-06 Thread Mantas Mikulėnas
temd startup process runs twice as many Assorted Things as my full desktop environment did in the past, so maybe the issue is no longer relevant.) -- Mantas Mikulėnas

Re: [systemd-devel] Wireguard routes only after connect

2024-02-24 Thread Mantas Mikulėnas
On Wed, Feb 14, 2024, 10:55 Julian Zielke wrote: > Hi, > > > > is there a possibility to only add the routes from allowed-ips to the > kernel routing table after the peer has connected? > > Because since the tunnel itself is stateless, there is no way for me to > make use of OSPF to route packets

Re: [systemd-devel] Howto unshare when user session starts.

2024-02-21 Thread Mantas Mikulėnas
> I want the user sessions to start in a {mount,user} namespace. How can > I do this? I know there is the command systemd-nspawn. But to use this > I have to adjust the first command to start a session. Or is it > possible by setting parameters in logind? > > Stef > the Netherlands > -- Mantas Mikulėnas

Re: [systemd-devel] Assistance Needed with 'loginctl list-users' Command Display Issue

2024-02-12 Thread Mantas Mikulėnas
Also, if you're using a terminal that doesn't recognize OSCs (it should just ignore unknown ones), export SYSTEMD_URLIFY=0 to disable the hyperlink feature that's making a mess out of systemctl output. On Tue, Feb 13, 2024, 06:53 Sangeetha Elumalai wrote: > Hi, > > The* 'loginctl list-users'* co

Re: [systemd-devel] Assistance Needed with 'loginctl list-users' Command Display Issue

2024-02-12 Thread Mantas Mikulėnas
You need to make sure the PAM configuration for whichever service you're logging in through includes pam_systemd.so in the 'session' group. Check /etc/pam.d on other distributions. (For tty logins it's /etc/pam.d/login, but usually it's indirect via /etc/pam.d/common-session or something along thos

Re: [systemd-devel] network signals

2024-02-06 Thread Mantas Mikulėnas
.NamespaceId property t 4026531840 const > .OnlineStateproperty s "partial" > emits-change > .OperationalState property s "routable" > emits-change > root@MK3AC-WS100269:/var/lib/evse/cache# > > Thanks, > Ashok > > -- Mantas Mikulėnas

Re: [systemd-devel] Detecting Systemd crash

2024-02-05 Thread Mantas Mikulėnas
On Mon, Feb 5, 2024, 14:54 Lennart Poettering wrote: > On So, 04.02.24 00:06, David Timber (d...@dev.snart.me) wrote: > > > 2: How do I get Systemd to freeze to test such program? I mean, if I kill > > Systemd, the kernel would crash so I have to somehow tell Systemd to > freeze? > > Not really,

Re: [systemd-devel] Delaying VM startup until block devices are available

2024-01-25 Thread Mantas Mikulėnas
ervice" that adds Before=foo.target. I'm not sure if clevis integrates with that. (Although honestly I don't see much point in using clevis for data volumes at all – just use it for the rootfs, and regular keyfiles in /etc/private for everything else...) -- Mantas Mikulėnas

Re: [systemd-devel] Permanently remove services

2024-01-20 Thread Mantas Mikulėnas
On Sat, Jan 20, 2024 at 8:02 AM Andrei Borzenkov wrote: > On 19.01.2024 20:22, Mantas Mikulėnas wrote: > > On Fri, Jan 19, 2024, 19:12 Morten Bo Johansen > wrote: > > > >> On 2024-01-19 Mantas Mikulėnas wrote: > >> > >>> In general I'

Re: [systemd-devel] Permanently remove services

2024-01-19 Thread Mantas Mikulėnas
On Fri, Jan 19, 2024, 19:12 Morten Bo Johansen wrote: > On 2024-01-19 Mantas Mikulėnas wrote: > > > In general I've learned to not quite trust what the firmware shows... > we've > > had a batch of Skylake-or-so desktops that *did* have a CPU-integrated > fTP

Re: [systemd-devel] Permanently remove services

2024-01-19 Thread Mantas Mikulėnas
On Fri, Jan 19, 2024, 17:47 Morten Bo Johansen wrote: > On 2024-01-18 Lennart Poettering wrote: > > > On Do, 18.01.24 22:53, Morten Bo Johansen (morte...@hotmail.com) wrote: > > > >> ~/ % systemd-creds has-tpm2 > >> partial > >> +firmware > >> -driver > >> +system > >> +subsystem > >> +libraries

Re: Activation environment(s)?

2024-01-08 Thread Mantas Mikulėnas
The traditional dbus-daemon keeps a separate environment for services it spawns directly (i.e. those that don't specify SystemdService= in their D-Bus .service files), though that it doesn't apply to services it runs via systemd so you need to keep both in sync. On the other hand, dbus-broker runs

Re: Troubleshooting timedatectl and hostnamectl failed to activate service: timed out

2023-12-13 Thread Mantas Mikulėnas
Activation is not client-side, it's handled automatically by dbus-daemon – which either spawns the service directly or starts it as a systemd service. In this case, check whether your logs show systemd-hostnamed.service attempting to start; either it fails to start (missing libraries? Apparmor?) o

Re: [systemd-devel] Manual start of user@.service failed with permission denied

2023-12-13 Thread Mantas Mikulėnas
(or in fact you could replace the entire user-runtime-dir@ with a simpler one that only mkdirs and chowns), but in that case you shouldn't be saying that it's a systemd issue that it doesn't chown something that it was never meant to chown to begin with. > > > Best regards,

Re: [systemd-devel] Manual start of user@.service failed with permission denied

2023-12-12 Thread Mantas Mikulėnas
Process: 16361 ExecStop=/usr/lib/systemd/systemd-user-runtime-dir > stop 1001 (code=exited, status=0/SUCCESS) > >Main PID: 16329 (code=exited, status=0/SUCCESS) > > CPU: 48ms > > > > /etc/fstab don’t include anything on /run/user/1001 and there is no mount &g

  1   2   3   4   5   6   7   8   9   10   >