[systemd-devel] how to set net_cls.classid cgroups argument for a service?

2019-11-26 Thread Andrew Gurinovich
What is the recommended way to assign cgroups prop net_cls.classid to a systemd service? Seems that a rule of thumb that whatever service property that is supposed to be systemd-managed, got a property in service file. However, https://systemd.io/CGROUP_DELEGATION says that: >>This means systemd

[systemd-devel] systemd-inhibit fails when run from a service file

2019-11-26 Thread Amish
Hello, I have a small perl program which downloads something. While downloading it inhibits (blocks) shutdown, reboot etc. The program runs as user "foo". Roughly the code is something like this: $ cat /home/foo/downloads/dnld.sh #!/bin/bash /usr/bin/systemd-inhibit

Re: [systemd-devel] How to compile systemd v219

2019-11-26 Thread Lennart Poettering
On Di, 26.11.19 10:36, Ankele zhang (ankelezh...@gmail.com) wrote: > On CentOS7.6(3.10.0-957.el7.x86_64), I encrypt my root disk and I have to > enter my passphrase while booting my CentOS before mount root disk. Now, I > want to hardcode the passphrase into the program, what should I do? > > I