diff options
author | Stephane Desneux <stephane.desneux@iot.bzh> | 2019-01-06 15:13:27 +0100 |
---|---|---|
committer | Stéphane Desneux <stephane.desneux@iot.bzh> | 2019-01-07 00:35:30 +0000 |
commit | 2105c010e32b7e868949797257923019081ac061 (patch) | |
tree | 33da50aa1d69526f1155624805fb13f47ad738e2 /conf/system/afm-user-setup@.service | |
parent | a9178b39a9b48b5a67a3f5726c0b633825336c40 (diff) |
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 <stephane.desneux@iot.bzh>
Diffstat (limited to 'conf/system/afm-user-setup@.service')
-rw-r--r-- | conf/system/afm-user-setup@.service | 2 |
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" + |