unit.conf: Bound start to agl-user-session
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 21 Nov 2017 13:58:00 +0000 (14:58 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 24 Nov 2017 16:44:58 +0000 (17:44 +0100)
Change-Id: Ic9731dbc9ee71872198ad70995dbaced8a7aa683
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
conf/afm-unit-debug.conf.in
conf/afm-unit.conf.in
conf/generate-unit-conf/provided.inc
conf/generate-unit-conf/service.inc

index a770fbc..2b8a899 100644 (file)
@@ -191,7 +191,7 @@ ExecStart={{:#metadata.install-dir}}/{{content.src}}
 ;---------------------------------------------------------------------------------
 [Install]
 WantedBy=default.target
-%systemd-unit wanted-by default.target
+%systemd-unit wanted-by agl-user-session@.service
 {{/required-permission.urn:AGL:permission::system:run-by-default}}
 %end systemd-unit
 ;---------------------------------------------------------------------------------
@@ -211,7 +211,7 @@ Service=afm-{{#required-permission.urn:AGL:permission::public:hidden}}service{{/
 %nl
 [Install]
 WantedBy=sockets.target
-%systemd-unit wanted-by sockets.target
+%systemd-unit wanted-by agl-user-session@.service
 %end systemd-unit
 {{/value=ws|auto}}
 {{/provided-api}}
index 11ad15a..5338df4 100644 (file)
@@ -191,7 +191,7 @@ ExecStart={{:#metadata.install-dir}}/{{content.src}}
 ;---------------------------------------------------------------------------------
 [Install]
 WantedBy=default.target
-%systemd-unit wanted-by default.target
+%systemd-unit wanted-by agl-user-session@.service
 {{/required-permission.urn:AGL:permission::system:run-by-default}}
 %end systemd-unit
 ;---------------------------------------------------------------------------------
@@ -211,7 +211,7 @@ Service=afm-{{#required-permission.urn:AGL:permission::public:hidden}}service{{/
 %nl
 [Install]
 WantedBy=sockets.target
-%systemd-unit wanted-by sockets.target
+%systemd-unit wanted-by agl-user-session@.service
 %end systemd-unit
 {{/value=ws|auto}}
 {{/provided-api}}
index 3e29294..d9c12a0 100644 (file)
@@ -23,7 +23,7 @@ Service=UNIT_NAME_SERVICE
 %nl
 [Install]
 WantedBy=sockets.target
-%systemd-unit wanted-by sockets.target
+%systemd-unit wanted-by agl-user-session@.service
 
 %end systemd-unit
 
index 21e16e3..7e8dd40 100644 (file)
@@ -107,7 +107,7 @@ IF_PERM(:system:run-by-default)
 ;---------------------------------------------------------------------------------
 [Install]
 WantedBy=default.target
-%systemd-unit wanted-by default.target
+%systemd-unit wanted-by agl-user-session@.service
 ENDIF
 
 %end systemd-unit