tizen: Add additional unit for "unified" user session 38/204138/2
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 19 Apr 2019 11:57:06 +0000 (13:57 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 29 Apr 2019 12:29:35 +0000 (14:29 +0200)
commitbe366a16c0d5ed2252461286299fc039b2cf9b66
tree8d450cf2a9c1a4d080100a1c2054a2021b466611
parenta8ed2b581751387cbf1fd9b120f5fb7b6a2ceff2
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: I009b5188e3c928e6f4faf87f0aac311bd959dc5e
packaging/media-server-user@.path [new file with mode: 0644]
packaging/media-server-user@.service [new file with mode: 0644]
packaging/media-server.spec