aboutsummaryrefslogtreecommitdiffstats
path: root/conf/system/afm-api-afm-main@.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'conf/system/afm-api-afm-main@.service.in')
-rw-r--r--conf/system/afm-api-afm-main@.service.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/conf/system/afm-api-afm-main@.service.in b/conf/system/afm-api-afm-main@.service.in
new file mode 100644
index 0000000..f5b2519
--- /dev/null
+++ b/conf/system/afm-api-afm-main@.service.in
@@ -0,0 +1,13 @@
+[Unit]
+Description=Provides api afm-main for user %i
+X-AFM-API-TYPE=ws
+
+Requires=afm-user-setup@%i.service
+After=afm-user-setup@%i.service
+Requires=afm-system-daemon.socket
+After=afm-system-daemon.socket
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/bin/ln -s @afm_platform_rundir@/apis/ws/afm-main /run/user/%i/apis/ws/afm-main