aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-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