From 88531199d2f46f8758dd1ef3262e567cc849c0b8 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Wed, 15 Nov 2017 16:20:28 +0100 Subject: Generate afm-unit.conf using m4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The use of m4 to generate the afm-unit.conf and afm-unit-debug.conf files has benefits: - the sync between debug versus not debug is mechanical - it allows easier maintainance by improving readability and writability (ex: macros TARGET or UNIT_NAME_BASE) Change-Id: Ic0427bedf4f8a5b174318562336603077f174fa5 Signed-off-by: José Bollo --- conf/generate-unit-conf/provided.inc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 conf/generate-unit-conf/provided.inc (limited to 'conf/generate-unit-conf/provided.inc') diff --git a/conf/generate-unit-conf/provided.inc b/conf/generate-unit-conf/provided.inc new file mode 100644 index 0000000..d42ba77 --- /dev/null +++ b/conf/generate-unit-conf/provided.inc @@ -0,0 +1,32 @@ +;--------------------------------------------------------------------------------- +;---- P R O V I D E D A P I S ---- +;--------------------------------------------------------------------------------- + +{{#provided-api}} +{{#value=ws|auto}} + +%begin systemd-unit + +# auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}} + +%systemd-unit system +%systemd-unit socket afm-api-ws-{{name}}@ + +[Socket] +SmackLabel=* +ListenStream=%t/apis/ws/{{name}} +FileDescriptorName={{name}} + +Service=UNIT_NAME_SERVICE + +%nl +[Install] +WantedBy=sockets.target +%systemd-unit wanted-by sockets.target + +%end systemd-unit + +{{/value=ws|auto}} +{{/provided-api}} + + -- cgit 1.2.3-korg