Config for afm-user-session
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 23 Nov 2017 21:30:53 +0000 (22:30 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 24 Nov 2017 16:44:58 +0000 (17:44 +0100)
Change-Id: I6567b58fa0a6dd17deba4c7cccbf3b9f441730eb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
conf/system/afm-user-session@.service
conf/system/afm-user-session@.target
conf/system/afm-user-setup@.path
conf/system/afm-user-setup@.service
conf/unit/afm-unit-debug.conf.in
conf/unit/afm-unit.conf.in
conf/unit/generate-unit-conf/provided.inc
conf/unit/generate-unit-conf/service.inc

index 561128d..83ae24f 100644 (file)
@@ -1,5 +1,5 @@
 [Unit]
 [Unit]
-Description=Starts the session of afm user %i
+Description=Initiate afm-user-session %i
 After=systemd-user-sessions.service
 Wants=afm-user-setup@%i.service
 Before=afm-user-setup@%i.service
 After=systemd-user-sessions.service
 Wants=afm-user-setup@%i.service
 Before=afm-user-setup@%i.service
index 1e39ce0..23bebfd 100644 (file)
@@ -1,3 +1,4 @@
 [Unit]
 [Unit]
-After=afm-user-session@%i.service
+Description=Target group of afm-user-session %i
+Requires=afm-user-setup@%i.service
 After=afm-user-setup@%i.service
 After=afm-user-setup@%i.service
index 2dd0f75..ca22c71 100644 (file)
@@ -1,4 +1,5 @@
 [Unit]
 [Unit]
+Description=Path for setup completion of afm-user-session %i
 DefaultDependencies=false
 [Path]
 PathExists=/run/user/%i/wayland-0
 DefaultDependencies=false
 [Path]
 PathExists=/run/user/%i/wayland-0
index 12b593b..050a33a 100644 (file)
@@ -1,15 +1,13 @@
 [Unit]
 [Unit]
-Description=Starts the session of afm user %i
+Description=Setup completion of afm-user-session %i
 Requires=afm-user-setup@%i.path
 After=afm-user-setup@%i.path
 Requires=afm-user-setup@%i.path
 After=afm-user-setup@%i.path
+Requires=afm-user-session@%i.service
 After=afm-user-session@%i.service
 Before=afm-user-session@%i.target
 After=afm-user-session@%i.service
 Before=afm-user-session@%i.target
-After=user@%i.service
 [Service]
 User=%i
 Type=oneshot
 [Service]
 User=%i
 Type=oneshot
-ExecStartPre=/bin/echo USER SETUP %i
-ExecStartPre=/bin/systemctl status
 ExecStart=/bin/rm /run/user/%i/afm-user-started
 
 
 ExecStart=/bin/rm /run/user/%i/afm-user-started
 
 
index ab3b43a..fdea673 100644 (file)
@@ -105,7 +105,8 @@ X-AFM--type={{content.type}}
 X-AFM--wgtdir={{:#metadata.install-dir}}
 X-AFM--workdir=/home/%i/app-data/{{:id}}
 %nl
 X-AFM--wgtdir={{:#metadata.install-dir}}
 X-AFM--workdir=/home/%i/app-data/{{:id}}
 %nl
-Wants=afm-user-session@%i.target
+Requires=afm-user-session@%i.target
+Requires=afm-user-setup@%i.service
 After=afm-user-setup@%i.service
 # Adds check to smack
 ConditionSecurity=smack
 After=afm-user-setup@%i.service
 # Adds check to smack
 ConditionSecurity=smack
@@ -205,6 +206,7 @@ WantedBy=afm-user-session@.target
 %systemd-unit socket afm-api-ws-{{name}}@
 [Unit]
 Description=Provides api {{name}} for user %i
 %systemd-unit socket afm-api-ws-{{name}}@
 [Unit]
 Description=Provides api {{name}} for user %i
+Requires=afm-user-setup@%i.service
 After=afm-user-setup@%i.service
 [Socket]
 SmackLabel=*
 After=afm-user-setup@%i.service
 [Socket]
 SmackLabel=*
index 285d682..56a9075 100644 (file)
@@ -105,7 +105,8 @@ X-AFM--type={{content.type}}
 X-AFM--wgtdir={{:#metadata.install-dir}}
 X-AFM--workdir=/home/%i/app-data/{{:id}}
 %nl
 X-AFM--wgtdir={{:#metadata.install-dir}}
 X-AFM--workdir=/home/%i/app-data/{{:id}}
 %nl
-Wants=afm-user-session@%i.target
+Requires=afm-user-session@%i.target
+Requires=afm-user-setup@%i.service
 After=afm-user-setup@%i.service
 # Adds check to smack
 ConditionSecurity=smack
 After=afm-user-setup@%i.service
 # Adds check to smack
 ConditionSecurity=smack
@@ -205,6 +206,7 @@ WantedBy=afm-user-session@.target
 %systemd-unit socket afm-api-ws-{{name}}@
 [Unit]
 Description=Provides api {{name}} for user %i
 %systemd-unit socket afm-api-ws-{{name}}@
 [Unit]
 Description=Provides api {{name}} for user %i
+Requires=afm-user-setup@%i.service
 After=afm-user-setup@%i.service
 [Socket]
 SmackLabel=*
 After=afm-user-setup@%i.service
 [Socket]
 SmackLabel=*
index ff1ccf7..fd5d3ec 100644 (file)
@@ -14,6 +14,7 @@ dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
 %systemd-unit socket afm-api-ws-{{name}}@
 [Unit]
 Description=Provides api {{name}} for user %i
 %systemd-unit socket afm-api-ws-{{name}}@
 [Unit]
 Description=Provides api {{name}} for user %i
+Requires=afm-user-setup@%i.service
 After=afm-user-setup@%i.service
 
 [Socket]
 After=afm-user-setup@%i.service
 
 [Socket]
index b5292d7..273db3b 100644 (file)
@@ -32,7 +32,8 @@ X-AFM--wgtdir={{:#metadata.install-dir}}
 X-AFM--workdir=APP_DATA_DIR/{{:id}}
 %nl
 
 X-AFM--workdir=APP_DATA_DIR/{{:id}}
 %nl
 
-Wants=afm-user-session@%i.target
+Requires=afm-user-session@%i.target
+Requires=afm-user-setup@%i.service
 After=afm-user-setup@%i.service
 
 # Adds check to smack
 After=afm-user-setup@%i.service
 
 # Adds check to smack