<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I would like to use a user service (systemctl --user) with systemd on RHEL7 where it has been deliberately removed.<br><br></div>I've communicated with the RH dev who made this change who reported that I could restore the /lib/systemd/system/user@.service file and mostly everything would work.<br><br></div>I don't care about having the user service exist only when the user is logged in, as I will enable lingering on the service and I want it to be running from boot to shutdown.<br><br></div>I've found that I can run:<br><br></div>    systemctl start user@foo<br><br></div>to start the foo user's service and that works, but on other systems (Ubuntu) where user services are officially supported, the user service is automatically started when I run:<br><br></div>  loginctl enable-linger foo<br><br></div>whereas on RHEL, running this command does not start the service.<br><br></div>I can imagine writing a tiny additional service on RHEL that will start the user service using:<br><br></div>    ExecStart=/usr/bin/systemctl start user@foo<br><br></div>but I'd rather make lingering officially work on RHEL to the extent that that is possible.<br><br></div>Two questions:<br><br></div>1) Any idea how to make lingering work such that the user service is started automatically on reboot<br><br></div>2) Is it a really dumb idea to try to make this work on RHEL7?<br><br></div>Thanks!<br><br></div>Jeff<br><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div>