[systemd-devel] Using sysusers to setup a new system

2017-12-22 Thread Sébastien Luttringer
Hello, On the way to rely on systemd-sysusers to create all users in a fresh Arch Linux installation, I'm stuck with two issues[1][2]. The key idea was to rely on systemd-users to create them all and start with empty passwd/group/shadow/gshadow files[3]. So, we moved all base user definitions in a

Re: [systemd-devel] Back trace systemd service unit by pid

2017-12-22 Thread Kevin Hsu
Hi folks, First of all thanks for all good answers. After looking deep how the "ps" command gets the unit name, I found out that it uses function "sd_pid_get_unit" from systemd/sd-login.h in libsystemd.so. So I decide to use it as well. Thanks a lot. Best wishes, Kevin 2017-12-21 23:05 GMT+08:00