afm-unit.conf: cleanup of generation
[src/app-framework-main.git] / conf / unit / generate-unit-conf / provided-api.inc
index eb04181..bdee6c9 100644 (file)
@@ -1,11 +1,4 @@
 dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
-;-------------------------------------------------------------------------------
-;----        P R O V I D E D   A P I S                                      ----
-;-------------------------------------------------------------------------------
-
-{{#provided-api}}
-{{#value=ws|auto}}
-
 ;-------------------------------------------------------------------------------
 ;----        T H E   S E R V I C E   O F   T H E   A P I                    ----
 ;-------------------------------------------------------------------------------
@@ -23,21 +16,16 @@ X-AFM-API-TYPE={{value}}
 Requires=afm-user-setup@%i.service
 After=afm-user-setup@%i.service
 
-{{#value=ws|auto}}
 Requires=UNIT_NAME_API_BASE({{name}})@%i.socket
 After=UNIT_NAME_API_BASE({{name}})@%i.socket
-{{/value=ws|auto}}
 
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-{{#value=ws|auto}}
 ExecStart=/bin/true
-{{/value=ws|auto}}
 
 %end systemd-unit
 
-
 ;-------------------------------------------------------------------------------
 ;----        T H E   S O C K E T   O F   T H E   A P I                      ----
 ;-------------------------------------------------------------------------------
@@ -58,15 +46,11 @@ DefaultDependencies=no
 SmackLabel=*
 SmackLabelIPIn=System
 SmackLabelIPOut=System
-ListenStream=USER_RUN_DIR/apis/ws/{{name}}
+ListenStream=API_PATH_WS/{{name}}
 FileDescriptorName={{name}}
 Service=UNIT_NAME_SERVICE
 
 %end systemd-unit
 
 
-{{/value=ws|auto}}
-
-{{/provided-api}}
-