Re: [systemd-devel] Is it possible to load unit files from paths other than default paths ?

2016-09-22 Thread Mantas Mikulėnas
On Thu, Sep 22, 2016 at 9:13 AM, Raghavendra. H. R wrote: > Thank you for the suggestions. > But with this suggestion I need to run as user something like that. > > In normal init.d systems, we have environment variables like PATH & > LD_LIBRARY_PATH. > No matter where I

[systemd-devel] python-systemd 232 released

2016-09-22 Thread Zbigniew Jędrzejewski-Szmek
After a long while… it's here. CHANGES WITH 232: * Wrappers for sd_journal_enumerate_unique, has_runtime_files, has_peristent_files. * sd_journal_open_directory_fd, sd_journal_open_files_fd can be used by passing file descriptors to the initializer as

[systemd-devel] systemd, cgroups and process swappiness

2016-09-22 Thread Dennis Jacobfeuerborn
Hi, I'm trying to prevent a qemu process from using swap and noticed that in addition to /proc/sys/vm/swappiness systemd and cgroups now play a role in this. I set /proc/sys/vm/swappiness to 0 and did the same for /sys/fs/cgroup/memory/machine.slice/memory.swappiness and

Re: [systemd-devel] Is it possible to load unit files from paths other than default paths ?

2016-09-22 Thread Andrei Borzenkov
On Thu, Sep 22, 2016 at 9:18 AM, Raghavendra. H. R wrote: > Thank you for the suggestions. > But with this suggestion i.e., generator file, I again need to add/modify > some files. > You need to add/modify some files to implement your service anyway. I do not see how one

[systemd-devel] terminal permissions after machinectl shell

2016-09-22 Thread Michał Zegan
Hello, when you use machinectl shell, you get your own pseudoterminal, don't you? but it is owned by root. Problem is when some background process tries to open this terminal when this background process runs from the spawned shell, like gpg-agent, because it has no permissions to do so and fails.

Re: [systemd-devel] Is it possible to load unit files from paths other than default paths ?

2016-09-22 Thread Raghavendra. H. R
Thank you for the suggestions. But with this suggestion I need to run as user something like that. In normal init.d systems, we have environment variables like PATH & LD_LIBRARY_PATH. No matter where I place my new executable or library, adding that path into these environment variables is enough

Re: [systemd-devel] Is it possible to load unit files from paths other than default paths ?

2016-09-22 Thread Raghavendra. H. R
Thank you for the suggestions. But with this suggestion i.e., generator file, I again need to add/modify some files. All I'm looking into is I mount my binaries and unit files under /mnt. By setting any environment variable like SYSTEMD_UNIT_PATH, systemd should pick the unit files from /mnt and