tizen: Add additional unit for "unified" user session 31/204131/1 accepted/tizen/unified/20190502.112830 submit/tizen/20190430.135939
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 19 Apr 2019 10:36:54 +0000 (12:36 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 19 Apr 2019 13:34:17 +0000 (15:34 +0200)
commit4643f56973dda0d0555206b3b4028967eab1127e
tree004519b88cd28bc3de71be9a22730ae6237c22d9
parent28105294be26e99218e3425d653f52d1153bc1eb
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: I753079a8eb9e4b8d340850b2b601c46424819d13
packaging/context-service.spec
packaging/contextd-agent@.service [new file with mode: 0644]
packaging/contextd-agent@.socket [new file with mode: 0644]