From 9f24684ab10cd3e90982721e3bc24611c7e1b348 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Sun, 6 Jan 2019 15:13:27 +0100 Subject: afm-user-setup service: disable start rate limit The service afm-user-setup is invoked each time an app is started. If the user starts apps too quickly (3 apps in less than 10secs by default), then afm-user-setup will fail and the last app is not started. This patch removes the rate limitation coming from systemd default config. Change-Id: Ief6af726c58866e2fc6d3fa170e5f6c6afbee987 Signed-off-by: Stephane Desneux --- conf/system/afm-user-setup@.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/system/afm-user-setup@.service b/conf/system/afm-user-setup@.service index ba6f78e..cc5332b 100644 --- a/conf/system/afm-user-setup@.service +++ b/conf/system/afm-user-setup@.service @@ -3,6 +3,7 @@ Description=Initiate afm-user-setup %i After=user@%i.service [Service] Type=oneshot +StartLimitInterval=0 ExecStart=-/bin/sh -c "/bin/mkdir /run/user/%i; /bin/chown %i:%i /run/user/%i; /usr/bin/chsmack -a '*' /run/user/%i" ExecStart=-/bin/sh -c "/bin/mkdir /run/user/%i/apis; /bin/chown %i:%i /run/user/%i/apis; /usr/bin/chsmack -a '*' /run/user/%i/apis" ExecStart=-/bin/sh -c "/bin/mkdir /run/user/%i/apis/ws; /bin/chown %i:%i /run/user/%i/apis/ws; /usr/bin/chsmack -a '*' /run/user/%i/apis/ws" @@ -10,3 +11,4 @@ ExecStart=-/bin/sh -c "/bin/mkdir /run/user/%i/apis/link; /bin/chown %i:%i /run/ ExecStart=-/bin/sh -c "/bin/ln -sf /run/platform/display/wayland-0 /run/user/%i/wayland-0; /bin/chown %i:%i /run/user/%i/wayland-0; /usr/bin/chsmack -a '*' /run/user/%i/wayland-0" + -- cgit 1.2.3-korg