Re: [systemd-devel] Udevd and dev file creation

2022-01-31 Thread Nishant Nayan
Thanks, I will check that out. Is there any site where I can gain in depth code level knowledge of systemd-udevd? Regards Nishant Nayan On Mon, 31 Jan 2022, 17:13 Lennart Poettering, wrote: > On So, 30.01.22 17:14, Nishant Nayan (nayan.nishant2...@gmail.com) wrote: > > > I have started

[systemd-devel] Passive vs Active targets

2022-01-31 Thread Thomas HUMMEL
Hello, I'm successully using systemd with some non trivial (for me!) unit dependencies including some performing: custom local disk formatting and mounting at boot additionnal nics configuration by running postscripts fetched from the network Infiniband initialisation NFS remote

Re: [systemd-devel] systemd killing processes on monitor wakeup?

2022-01-31 Thread Lennart Poettering
On Mo, 31.01.22 09:47, Raman Gupta (rocketra...@gmail.com) wrote: > > Honestly this just sounds like systemd killing "leftover" processes within > > the plasma-plasmashell cgroup, after the "main" process of that service has > > exited. That's not a bug; that's standard behavior for systemd

Re: [systemd-devel] [EXT] Re: systemd killing processes on monitor wakeup?

2022-01-31 Thread Raman Gupta
Indeed. There are no end of troubles with modern display tech. I feel for people who make DEs :-) Obviously Plasma should not be crashing in this situation, but on the plus side it does happily restart and everything continues without issue. The bigger problem for me is the overall behavior of

Re: [systemd-devel] systemd killing processes on monitor wakeup?

2022-01-31 Thread Raman Gupta
On Sun, Jan 30, 2022 at 5:54 AM Mantas Mikulėnas wrote: > On Sat, Jan 29, 2022 at 5:29 AM Raman Gupta wrote: > >> Try to set the systemd user instance's log level to 'debug'; I'm guessing >>> it's not that systemd kills processes directly but that something triggers >>> a 'systemctl stop' of

Re: [systemd-devel] Launching script that needs network before suspend

2022-01-31 Thread Mantas Mikulėnas
On Mon, Jan 31, 2022 at 2:01 PM Lennart Poettering wrote: > On So, 23.01.22 22:13, Tomáš Hnyk (tomash...@gmail.com) wrote: > > > Hello, > > I have my computer hooked up to an AVR that runs my home cinema and > ideally > > I would like the computer to turn off the AVR when I turn it off or >

Re: [systemd-devel] Launching script that needs network before suspend

2022-01-31 Thread Lennart Poettering
On So, 23.01.22 22:13, Tomáš Hnyk (tomash...@gmail.com) wrote: > Hello, > I have my computer hooked up to an AVR that runs my home cinema and ideally > I would like the computer to turn off the AVR when I turn it off or suspend > it. The only way to do this is over network and I wrote a simple

Re: [systemd-devel] Translating --machine parameter to a service file

2022-01-31 Thread Lennart Poettering
On Di, 25.01.22 13:04, Tomáš Hnyk (tomash...@gmail.com) wrote: > Hello, > I want to run a script invoked by udev to run a pactl script. I am now using > a udev rule SUBSYSTEM=="drm", ACTION=="change", > RUN+="/usr/local/bin/my_script" > > which calls (drew is my username): > systemctl

Re: [systemd-devel] Udevd and dev file creation

2022-01-31 Thread Lennart Poettering
On So, 30.01.22 17:14, Nishant Nayan (nayan.nishant2...@gmail.com) wrote: > I have started reading about udevd. > I was trying to find out if there is a way to play with udev without > plugging in/out any devices. > Is there a way to trigger a uevent without plugging in devices? use "udevadm

[systemd-devel] Antw: [EXT] Udevd and dev file creation

2022-01-31 Thread Ulrich Windl
>>> Nishant Nayan schrieb am 30.01.2022 um 04:45 >>> in Nachricht : > Hi, > Does creating a dev file in /dev creates a uevent? Does a dev file > creation considered as a "device attached" to the machine? I'd guess "Most likely not" as you can create /dev files without actually having the