<div dir="ltr"><div><div class="ebc gmail-vF" style="color:rgb(51,51,51);font-size:16px;line-height:20px;margin-bottom:11px;padding-left:2px;word-wrap:break-word;font-family:"normal arial",sans-serif"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34)">Hi,</span><br></div></div><div>I'm Ronan from Iot.bzh team and I'm currently working on AGL project.</div><div><a href="https://www.automotivelinux.org/">https://www.automotivelinux.org/</a><br></div><div>(AGL is an embedded system).<br></div><div><br></div><div><br></div><div>For the AGL project, I use systemd as a user login session manager.</div><div>Throw a service "<b style="color:rgb(53,53,53);font-family:sans-serif;white-space:nowrap">agl-user-session@.service"</b></div><div><br></div><div><div>[Service]</div><div>User=%i</div><div>PAMName=agl-user-session // (2)</div><div>ExecStart=-/bin/sleep 2147483648 // (1)</div><div>KillMode=mixed</div><div>Delegate=yes</div><div>TasksMax=infinity</div></div><div><br></div><div>(1):</div><div>We need to have a process up so, as a first steep, I use a "sleep".</div><div><br></div><div>(2):</div><div>we can't use "systemd-user" for the PAMName.</div><div>PAMName "systemd-user" is hardcoded here:<br></div><div>./src/login/pam_systemd.c:267<br></div><div>And we want logind create a session for us, this is why we use a custom PAMName "agl-user-session"<br></div><div><br></div><div>Question:</div><div>1)</div><div>Can you confirm, is it a good way to use systemd?</div><div><br></div><div>2) </div><div>Does systemd have a alternative?</div><div><br></div><div><br></div><div><br></div><div>Regards,</div><div>Ronan Le Martret [IoT.bzh]</div></div>