summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-03-14 18:24:46 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-03-17 13:01:40 +0100
commitcdd05aa3e66a876dba01f04173d817b9e5e039a0 (patch)
treeec309a4b9bd1ef1860ebc54d431b2a7e37db4c00 /conf
parentfcc925c4a6d7bc82106f6c8da13b1a58a7b23115 (diff)
wgtpkg-unit: add management of wanted-by in unit descriptions
This allows the automatic creation of the links in wants subdirectories. Change-Id: Ib948fb11abbbd902f733279136f51ad1649923ef Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf')
-rw-r--r--conf/afm-unit.conf10
1 files changed, 7 insertions, 3 deletions
diff --git a/conf/afm-unit.conf b/conf/afm-unit.conf
index 18ade85..86ab626 100644
--- a/conf/afm-unit.conf
+++ b/conf/afm-unit.conf
@@ -45,6 +45,10 @@
;
; gives the name and type of the unit
;
+; - %systemd-unit wanted-by NAME
+;
+; tells to install a link to unit in the wants of NAME
+;
;---------------------------------------------------------------------------------
{{#targets}}
%begin systemd-unit
@@ -147,7 +151,7 @@ ExecStart={{:#metadata.install-dir}}/{{content.src}}
{{#content.type=application/vnd.agl.service}}
%systemd-unit user
-%systemd-unit service afm-api-{{:#target}}
+%systemd-unit service afm-service-{{:#target}}
ExecStart=/usr/bin/afb-daemon \
--rootdir={{:#metadata.install-dir}} \
@@ -168,8 +172,7 @@ ExecStart=/usr/bin/afb-daemon \
# auto generated by wgtpkg-unit for {{id}} version {{version}} target {{:#target}}
#
%systemd-unit user
-%systemd-unit socket afm-api-{{:#target}}
-
+%systemd-unit socket afm-service-{{:#target}}
[socket]
SmackLabel=*
@@ -184,6 +187,7 @@ FileDescriptorName={{:#target}}
{{#required-permission.urn:AGL:permission::system:run-by-default}}
[install]
WantedBy=default.target
+%systemd-unit wanted-by default.target
{{/required-permission.urn:AGL:permission::system:run-by-default}}
;---------------------------------------------------------------------------------
%end systemd-unit