afm-unit: Export new variables
[src/app-framework-main.git] / conf / unit / generate-unit-conf / provided-api.inc
index 8a667a9..db5f125 100644 (file)
@@ -4,6 +4,7 @@ dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
 ;-------------------------------------------------------------------------------
 
 {{#provided-api}}
+{{#value=ws|auto}}
 
 ;-------------------------------------------------------------------------------
 ;----        T H E   S E R V I C E   O F   T H E   A P I                    ----
@@ -40,7 +41,6 @@ ExecStart=/bin/true
 ;-------------------------------------------------------------------------------
 ;----        T H E   S O C K E T   O F   T H E   A P I                      ----
 ;-------------------------------------------------------------------------------
-{{#value=ws|auto}}
 
 %begin systemd-unit
 
@@ -58,7 +58,7 @@ 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