aboutsummaryrefslogtreecommitdiffstats
path: root/conf/unit/afm-unit-debug.conf.in
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-05-16 09:13:59 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2019-05-23 16:09:24 +0200
commit44b1bdc8081f4968e70313463059e1ce77806ce2 (patch)
tree19aefbc91ebda3dda6f0f9358aa6a372456af339 /conf/unit/afm-unit-debug.conf.in
parent07a9590a2dfcfd18540bbb67e2fbc2fc1795e4fa (diff)
afm-unit.conf: cleanup of generation
The generation files are reworked to improve their evolution and maintainability: - the Makefile now refers to any .inc file - the macros are isolated from the skeleton - main iterators are managed in the skeleton - improve management of UNIT_NAME_BASE Bug-AGL: SPEC-2436 Change-Id: I0877eb0149c9362be3290ed2c146cc69fc6bf718 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf/unit/afm-unit-debug.conf.in')
-rw-r--r--conf/unit/afm-unit-debug.conf.in38
1 files changed, 21 insertions, 17 deletions
diff --git a/conf/unit/afm-unit-debug.conf.in b/conf/unit/afm-unit-debug.conf.in
index 2ef20e7..15c794c 100644
--- a/conf/unit/afm-unit-debug.conf.in
+++ b/conf/unit/afm-unit-debug.conf.in
@@ -1,4 +1,4 @@
-;---------------------------------------------------------------------------------
+;-------------------------------------------------------------------------------
; File:
;
; afm-unit.conf
@@ -74,11 +74,14 @@
; Records the installation directory path in the field "wgtdir"
; of the private object only.
;
-;---------------------------------------------------------------------------------
+;-------------------------------------------------------------------------------
+;---- F O R E A C H T A R G E T ----
+;-------------------------------------------------------------------------------
{{#targets}}
-;---------------------------------------------------------------------------------
-;---- M A I N P A R T O F T H E S E R V I C E ----
-;---------------------------------------------------------------------------------
+;-------------------------------------------------------------------------------
+;-------------------------------------------------------------------------------
+;---- M A I N P A R T O F T H E S E R V I C E ----
+;-------------------------------------------------------------------------------
%begin systemd-unit
# auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}}
%nl
@@ -165,9 +168,9 @@ SyslogIdentifier=afbd-{{idaver}}{{^#target=main}}@{{:#target}}{{/#target=main}}
StandardInput=null
StandardOutput=journal
StandardError=journal
-;---------------------------------------------------------------------------------
-;---- text/html application/vnd.agl.native application/vnd.agl.service ----
-;---------------------------------------------------------------------------------
+;-------------------------------------------------------------------------------
+;---- text/html application/vnd.agl.native application/vnd.agl.service ----
+;-------------------------------------------------------------------------------
{{#content.type=text/html|application/vnd.agl.native|application/vnd.agl.service}}
X-AFM-http-port={{:#metatarget.http-port}}
Type=notify
@@ -201,23 +204,23 @@ ExecStart=/usr/bin/afb-daemon \
{{#content.type=text/html}}--exec /usr/bin/web-runtime http://localhost:@p/{{content.src}}?token=@t{{/content.type=text/html}} \
{{#content.type=application/vnd.agl.native}}--exec {{:#metadata.install-dir}}/{{content.src}} @p @t{{/content.type=application/vnd.agl.native}}
{{/content.type=text/html|application/vnd.agl.native|application/vnd.agl.service}}
-;---------------------------------------------------------------------------------
-;---- application/x-executable ----
-;---------------------------------------------------------------------------------
+;-------------------------------------------------------------------------------
+;---- application/x-executable ----
+;-------------------------------------------------------------------------------
{{#content.type=application/x-executable}}
ExecStart={{:#metadata.install-dir}}/{{content.src}}
{{/content.type=application/x-executable}}
{{#required-permission.@afm_prefix@permission::system:run-by-default}}
-;---------------------------------------------------------------------------------
+;-------------------------------------------------------------------------------
; auto start
-;---------------------------------------------------------------------------------
+;-------------------------------------------------------------------------------
[Install]
WantedBy=afm-user-session@.target
%systemd-unit wanted-by afm-user-session@.target
{{/required-permission.@afm_prefix@permission::system:run-by-default}}
%end systemd-unit
;-------------------------------------------------------------------------------
-;---- P R O V I D E D A P I S ----
+;---- F O R E A C H P R O V I D E D A P I S ----
;-------------------------------------------------------------------------------
{{#provided-api}}
{{#value=ws|auto}}
@@ -263,7 +266,7 @@ Service=afm-{{#required-permission.@afm_prefix@permission::public:hidden}}servic
{{/value=ws|auto}}
{{/provided-api}}
;-------------------------------------------------------------------------------
-;---- P R O V I D E D B I N D I N G ----
+;---- F O R E A C H P R O V I D E D B I N D I N G ----
;-------------------------------------------------------------------------------
{{#provided-binding}}
;-------------------------------------------------------------------------------
@@ -283,7 +286,8 @@ RemainAfterExit=yes
ExecStart=/bin/ln -sf {{:#metadata.install-dir}}/{{value}} @afm_users_rundir@/%i/apis/link/{{name}}
%end systemd-unit
{{/provided-binding}}
+;-------------------------------------------------------------------------------
{{/targets}}
-;---------------------------------------------------------------------------------
+;-------------------------------------------------------------------------------
; End of file afm-unit.conf mode DEVEL
-;---------------------------------------------------------------------------------
+;-------------------------------------------------------------------------------