aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2019-01-06 15:13:27 +0100
committerStephane Desneux <stephane.desneux@iot.bzh>2019-01-06 15:13:27 +0100
commit9f24684ab10cd3e90982721e3bc24611c7e1b348 (patch)
treebae49610f8800234711f988ebc2c6fc10b7afe7b
parent9e6f77ae43af16d2af9bdb1ae8d20aed5deaac7d (diff)
afm-user-setup service: disable start rate limitguppy_6.99.4guppy/6.99.46.99.4
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 <stephane.desneux@iot.bzh>
-rw-r--r--conf/system/afm-user-setup@.service2
1 files changed, 2 insertions, 0 deletions
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"
+