tizen: Add additional unit for "unified" user session 26/204126/2
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 19 Apr 2019 08:28:46 +0000 (10:28 +0200)
committerInkyun Kil <inkyun.kil@samsung.com>
Thu, 2 May 2019 02:13:28 +0000 (02:13 +0000)
commitcc2ed40cbc75ac348b7145e93cdbee7d79663f50
treedeb4614435f720825f4525dba72bc2277deba3bf
parentb740de3baa48fe9f0862d95e4b366b8ca9010f71
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:

* TV profile would benefit from 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: Ie65e0d078f4e4ce09c753f9ea1983b08d397bfa7
packaging/alarm-manager.spec
packaging/alarm-session-agent@.service [new file with mode: 0644]
packaging/alarm-session-agent@.socket [new file with mode: 0644]