From 074adbffb714e89bdd3310d76e3cddd339102932 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Tue, 3 Dec 2013 17:28:49 -0800 Subject: [PATCH] Enable linger for the app user 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 --- packaging/meta-ivi.changes | 3 +++ scripts/base-weston-default.post | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/packaging/meta-ivi.changes b/packaging/meta-ivi.changes index e38ea23..34f80aa 100644 --- a/packaging/meta-ivi.changes +++ b/packaging/meta-ivi.changes @@ -1,3 +1,6 @@ +* Wed Dec 4 2013 Patrick McCarty 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 diff --git a/scripts/base-weston-default.post b/scripts/base-weston-default.post index dd8ed08..ba6bef9 100644 --- a/scripts/base-weston-default.post +++ b/scripts/base-weston-default.post @@ -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: -- 2.7.4