diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-11-23 15:44:24 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-11-24 17:44:58 +0100 |
commit | 7998a472352c0272a90c66ab45c4c2758cd6040a (patch) | |
tree | de3fb484fa2bca0850354f611551b049083d1420 /conf/unit/generate-unit-conf/provided.inc | |
parent | 633ebe33015554a14b773053188e2faba0faff04 (diff) |
Rework on systemd start of user sessions
Change-Id: Iad46596435eebdc5c521b572fd8320b52a61d197
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf/unit/generate-unit-conf/provided.inc')
-rw-r--r-- | conf/unit/generate-unit-conf/provided.inc | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/conf/unit/generate-unit-conf/provided.inc b/conf/unit/generate-unit-conf/provided.inc new file mode 100644 index 0000000..7e085bd --- /dev/null +++ b/conf/unit/generate-unit-conf/provided.inc @@ -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}} + + |