diff options
author | Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> | 2023-04-22 17:15:35 +0900 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-06-02 09:06:53 +0000 |
commit | 274ce2791f767bec0721d94bfd2666dc10d3221a (patch) | |
tree | 0dad3727357502172b903f2b31dd297e45285e5f /recipes-config/agl-session/agl-container-guest | |
parent | 75aa76bf11282d58d8d284441cb4979a4824a748 (diff) |
Remove tty dependency from agl-session in guest container
When existing agl demo integrate to container guest, need
to remove real tty device dependency.
This patch remove tty device dependency from agl-session
in case of container guest.
Bug-AGL: SPEC-4766
Change-Id: I3dc039cb471efa61ff93be72b781fca0efffce70
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'recipes-config/agl-session/agl-container-guest')
-rw-r--r-- | recipes-config/agl-session/agl-container-guest/agl-session@.service | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes-config/agl-session/agl-container-guest/agl-session@.service b/recipes-config/agl-session/agl-container-guest/agl-session@.service new file mode 100644 index 000000000..213d88c63 --- /dev/null +++ b/recipes-config/agl-session/agl-container-guest/agl-session@.service @@ -0,0 +1,24 @@ +[Unit] +Description=AGL user session +After=systemd-user-sessions.service +Wants=dbus.socket +After=dbus.socket +After=session-c1.scope +Before=multi-user.target + +[Service] +Environment=XDG_SESSION_TYPE=wayland +ExecStart=/bin/systemctl --wait --user start agl-session.target +TimeoutStartSec=30 +# This is a template service, instantiate for desired user's name or uid +User=%i +PAMName=login +WorkingDirectory=~ +StandardInput=null +StandardOutput=journal +StandardError=journal +Restart=always +RestartSec=3s + +[Install] +WantedBy=multi-user.target |