summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-11-21 14:58:00 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-11-24 17:44:58 +0100
commit094ea33c950a711956e0b894eaa974edf2d102ed (patch)
tree22baafb7ff6ab3665fcef2f20f36ddea62cba190
parenta50fe2cb853022f2dd2c02fd1a230e3050bbf524 (diff)
unit.conf: Bound start to agl-user-session
Change-Id: Ic9731dbc9ee71872198ad70995dbaced8a7aa683 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--conf/afm-unit-debug.conf.in4
-rw-r--r--conf/afm-unit.conf.in4
-rw-r--r--conf/generate-unit-conf/provided.inc2
-rw-r--r--conf/generate-unit-conf/service.inc2
4 files changed, 6 insertions, 6 deletions
diff --git a/conf/afm-unit-debug.conf.in b/conf/afm-unit-debug.conf.in
index a770fbc..2b8a899 100644
--- a/conf/afm-unit-debug.conf.in
+++ b/conf/afm-unit-debug.conf.in
@@ -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}}
diff --git a/conf/afm-unit.conf.in b/conf/afm-unit.conf.in
index 11ad15a..5338df4 100644
--- a/conf/afm-unit.conf.in
+++ b/conf/afm-unit.conf.in
@@ -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}}
diff --git a/conf/generate-unit-conf/provided.inc b/conf/generate-unit-conf/provided.inc
index 3e29294..d9c12a0 100644
--- a/conf/generate-unit-conf/provided.inc
+++ b/conf/generate-unit-conf/provided.inc
@@ -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
diff --git a/conf/generate-unit-conf/service.inc b/conf/generate-unit-conf/service.inc
index 21e16e3..7e8dd40 100644
--- a/conf/generate-unit-conf/service.inc
+++ b/conf/generate-unit-conf/service.inc
@@ -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