From b5c4862abfe8d72efa094ee498c50a7af8a2830b Mon Sep 17 00:00:00 2001 From: José Bollo Date: Tue, 27 Feb 2018 19:15:28 +0100 Subject: afm-user-session: Start target from user session MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Start the afm-user-session@%i.target from the user session after pam_sytemd session started. Change-Id: I5aeb8f01426b3cee2cbfad6ba30ecf37fe21abca Signed-off-by: José Bollo --- conf/system/afm-user-setup@.service | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 conf/system/afm-user-setup@.service (limited to 'conf/system/afm-user-setup@.service') diff --git a/conf/system/afm-user-setup@.service b/conf/system/afm-user-setup@.service new file mode 100644 index 0000000..2cc4214 --- /dev/null +++ b/conf/system/afm-user-setup@.service @@ -0,0 +1,8 @@ +[Unit] +Description=Initiate afm-user-setup %i +After=user@%i.service +[Service] +Type=one-shot +ExecStart=-/bin/sh -c "/bin/mkdir -Z '*' /run/user/%i && /bin/chown %i:%i /run/user/%i" +ExecStart=-/bin/sh -c "/bin/mkdir -Z '*' /run/user/%i/apis && /bin/chown %i:%i /run/user/%i/apis" +ExecStart=-/bin/sh -c "/bin/mkdir -Z '*' /run/user/%i/apis/ws && /bin/chown %i:%i /run/user/%i/apis/ws" -- cgit 1.2.3-korg