tizen: Add additional unit for "unified" user session 40/204140/1
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 19 Apr 2019 12:34:30 +0000 (14:34 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 19 Apr 2019 12:44:14 +0000 (14:44 +0200)
commit0172b0536396ee4da8cfbf82c402d1c37337c4ff
tree5b1066967fcd65d02e6e987181cb8273517bc51d
parent81b408e966d342e75f5b8e68c2d696bbf96f6e7c
tizen: Add additional unit for "unified" user session

The unified user session is about moving user session units, managed by
systemd --user, to main systemd, where it's managed as part of newly
created user@.target.

user@.target will contain same units as previously available in user/,
with same UID and environment setup.  systemd instance is used for unit
to be able to specify UID (inherited from user@.target).

The rationale behind this work is following:

* VD requirement to remove user session support
* boot time optimization requirements, due to:

   + 'systemd --user' taking 1s its own startup that could be used for
     unit startup
   + ability to better rearrange units if these managed by one systemd
     instance

Unit installed by this commit will not be used till user login mechanism
will be changed in systemd package (via changing pam_systemd to start
user@.target, rather than user@.service).

Change-Id: I37197fe35acb2f83f4097748f66ca1c3da1779f5
packaging/starter.spec
packaging/starter@.service [new file with mode: 0644]