Enable linger for the app user 42/13342/1 accepted/tizen/20131207.002820 submit/tizen/20131204.170833 submit/tizen/20131204.191712
authorPatrick McCarty <patrick.mccarty@linux.intel.com>
Wed, 4 Dec 2013 01:28:49 +0000 (17:28 -0800)
committerPatrick McCarty <patrick.mccarty@linux.intel.com>
Wed, 4 Dec 2013 01:35:53 +0000 (17:35 -0800)
Since user-session@5000.service does not work with systemd v208, and
Tizen is not using a display or session manager for user logins, a user
instance for "app" does not start up at all.

A workaround for this issue is to enable the "linger" for the app user
so that user@5000.service will launch at every boot.

The proper fix is to add a new service that will register a graphical
user session with systemd-logind, but this hasn't been implemented yet.
The feature is tracked in PTREL-521.

Change-Id: Ibce509523b4a6f2f158af07369823f8fde19f034
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
packaging/meta-ivi.changes
scripts/base-weston-default.post

index e38ea23..34f80aa 100644 (file)
@@ -1,3 +1,6 @@
+* Wed Dec 4 2013 Patrick McCarty <patrick.mccarty@linux.intel.com> 2dddf8f
+- Enable linger for the app user
+
 * Wed Dec  4 00:36:24 UTC 2013 - tracy.graydon@intel.com
 - TIVI-2246: add udisks-automount-agent to ivi-middleware pattern
 - this in turn should pull in libatasmart and udisks dependencies 
index dd8ed08..ba6bef9 100644 (file)
@@ -16,6 +16,10 @@ chsmack -a User /opt/home/app
 mkdir -p /usr/lib/systemd/system/graphical.target.wants
 ln -sf weston.target  /usr/lib/systemd/user/default.target
 
+# Enable user@5000.service by setting the linger for user 'app'
+mkdir -p /var/lib/systemd/linger
+touch /var/lib/systemd/linger/app
+
 # Add over-riding environment to enable the web runtime to
 # run on an IVI image as a different user then the tizen user
 # Some notes on some of the variables: