Rework on systemd start of user sessions
[src/app-framework-main.git] / conf / unit / generate-unit-conf / provided.inc
diff --git a/conf/unit/generate-unit-conf/provided.inc b/conf/unit/generate-unit-conf/provided.inc
new file mode 100644 (file)
index 0000000..7e085bd
--- /dev/null
@@ -0,0 +1,38 @@
+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}}
+
+%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}}@
+[Unit]
+Description=Provides api {{name}} for user %i
+After=afm-user-setup@%i.service
+
+[Socket]
+SmackLabel=*
+ListenStream=USER_RUN_DIR/apis/ws/{{name}}
+FileDescriptorName={{name}}
+
+Service=UNIT_NAME_SERVICE
+
+%nl
+[Install]
+WantedBy=agl-user-session@.target
+%systemd-unit wanted-by agl-user-session@.target
+
+%end systemd-unit
+
+
+
+{{/value=ws|auto}}
+{{/provided-api}}
+
+