Re: [systemd-devel] require=? to prevent premature session termination

2018-10-05 Thread Andrei Borzenkov
05.10.2018 15:52, Ralf Sieger пишет: > Hi, > my service needs to delay the stop of ssh during shutdown. > New ssh connections while my service is still runnign must be accpted, too. > So far I was able to postpone the stop of ssh and allow new connections: > [Unit] > BindsTo=ssh.service getty.targe

Re: [systemd-devel] specialized user sessions for running large processes

2018-10-05 Thread Lennart Poettering
On Mi, 03.10.18 11:29, Thomas Blume (thomas.bl...@suse.com) wrote: > > I mean not sure what you are asking for. *every* userspace process in > > systemd needs to be managed under a unit. The cgroup tree is > > universal, you cannot have processes outside of it, thus you have to > > pick a unit. >

Re: [systemd-devel] Path based activation error.

2018-10-05 Thread Lennart Poettering
On Fr, 14.09.18 09:50, deepan muthusamy (deepan.m2...@gmail.com) wrote: > Hi, > My myservice.path is as follows: > > *[Unit]* > *PartOf=myservice.service* > > *[Path]* > *PathExists=/run/user/1000* > > *[Install]* > *WantedBy=basic.target* > > > > Iam getting the following error: > > *myser

Re: [systemd-devel] Default on failure dependencies

2018-10-05 Thread Lennart Poettering
On Sa, 15.09.18 22:32, Baudouin Feildel (baudouin_syst...@feildel.fr) wrote: (Sorry for not responding more timely, I have been travelling and am still catching up with all the email) > Hello there, > > Few weeks ago I opened the following issue in systemd repository: > https://github.com/system

Re: [systemd-devel] sd-bus C++ wrapper: sdbusplus

2018-10-05 Thread Lennart Poettering
On Di, 02.10.18 12:01, Waqar Hameed (waqar.ham...@axis.com) wrote: > Hi! > > > You have a nice collection of sd-bus wrappers for different > languages at > https://www.freedesktop.org/wiki/Software/DBusBindings/. I was just > wondering if there is any reasons for why you have not included > sdbu

Re: [systemd-devel] Failed state DBUS notification not received on sigkill of service

2018-10-05 Thread Lennart Poettering
On Do, 27.09.18 14:22, prashantkumar dhotre (prashantkumardho...@gmail.com) wrote: > 1) Is this a bug ? > 2) Why service is put to failed state on sigkill ? > 3) if putting service into failed state on sigkill is right thing to do , > they why dbus notification is not being sent in case of servi

Re: [systemd-devel] systemd behavior during shutdown

2018-10-05 Thread Lennart Poettering
On Mi, 26.09.18 09:14, Tiwari, Hari Sahaya (hari-sahaya.tiw...@hpe.com) wrote: > Yes, you are correct. > system-hacl-cfg.slice does have conflict with shutdown.target and for this > DefaultDependencies is yes. May be that is the reason. > > Id=system-hacl-cfg.slice > Names=system-hacl-cfg.slice

Re: [systemd-devel] require=? to prevent premature session termination

2018-10-05 Thread Ralf Sieger
Hm, according to the docs this is not the case: "if a unit is configured with After= on another unit, the former is stopped before the latter if both are shut down " I read this as: a has After=b then the start ording should be: 1. start b 2. start a and thus the reverse on shutdown should b

Re: [systemd-devel] require=? to prevent premature session termination

2018-10-05 Thread Reindl Harald
Am 05.10.18 um 14:52 schrieb Ralf Sieger: > my service needs to delay the stop of ssh during shutdown. > New ssh connections while my service is still runnign must be accpted, too. >   > So far I was able to postpone the stop of ssh and allow new connections: > [Unit] > BindsTo=ssh.service getty.

[systemd-devel] require=? to prevent premature session termination

2018-10-05 Thread Ralf Sieger
Hi,   my service needs to delay the stop of ssh during shutdown. New ssh connections while my service is still runnign must be accpted, too.   So far I was able to postpone the stop of ssh and allow new connections: [Unit] BindsTo=ssh.service getty.target After=ssh.service getty.target   [

Re: [systemd-devel] Multiple initrds in unified kernel images?

2018-10-05 Thread Tobias Hunger
On Fri, Oct 5, 2018 at 9:10 AM David Anderson wrote: > > And of course, the law of asking questions on the internet is verified, and I > find the answer minutes after asking a thousand people. A Linux initramfs is > a concatenation of cpio archives, so I can just `cat microcode.img initrd.gz >

Re: [systemd-devel] Multiple initrds in unified kernel images?

2018-10-05 Thread Michał Zegan
I am not really sure if you are right and you can concatenate cpio archives, just be ware! they may be compressed, and in this case you would rather cat their uncompressed form... I think so at least. W dniu 05.10.2018 o 09:10, David Anderson pisze: > And of course, the law of asking questions on

Re: [systemd-devel] Multiple initrds in unified kernel images?

2018-10-05 Thread David Anderson
And of course, the law of asking questions on the internet is verified, and I find the answer minutes after asking a thousand people. A Linux initramfs is a concatenation of cpio archives, so I can just `cat microcode.img initrd.gz >initrd`, embed that in my unified image, and everything should jus

[systemd-devel] Multiple initrds in unified kernel images?

2018-10-05 Thread David Anderson
Hi, I'm exploring systemd-boot and secure booting for an Arch Linux install. To get secure boot working right, I need to build a unified kernel image that I can sign. However, I also need to pass 2 initrd images into the boot process (one for CPU microcode, and the proper OS iniramfs). But, AFAIC