diff options
Diffstat (limited to 'conf/system')
-rw-r--r-- | conf/system/afm-system-setup.service | 9 | ||||
-rw-r--r-- | conf/system/afm-user-setup@.service | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/conf/system/afm-system-setup.service b/conf/system/afm-system-setup.service new file mode 100644 index 0000000..260975c --- /dev/null +++ b/conf/system/afm-system-setup.service @@ -0,0 +1,9 @@ +[Unit] +Description=Initiate afm-system-setup +Before=weston.service +[Service] +Type=one-shot +ExecStart=-/bin/sh -c "/bin/mkdir -m 755 -Z '*' /run/platform" +ExecStart=-/bin/sh -c "/bin/mkdir -m 755 -Z '*' /run/platform/display" +ExecStart=-/bin/sh -c "/bin/mkdir -m 755 -Z '*' /run/platform/apis" +ExecStart=-/bin/sh -c "/bin/mkdir -m 755 -Z '*' /run/platform/apis/ws" diff --git a/conf/system/afm-user-setup@.service b/conf/system/afm-user-setup@.service new file mode 100644 index 0000000..2cc4214 --- /dev/null +++ b/conf/system/afm-user-setup@.service @@ -0,0 +1,8 @@ +[Unit] +Description=Initiate afm-user-setup %i +After=user@%i.service +[Service] +Type=one-shot +ExecStart=-/bin/sh -c "/bin/mkdir -Z '*' /run/user/%i && /bin/chown %i:%i /run/user/%i" +ExecStart=-/bin/sh -c "/bin/mkdir -Z '*' /run/user/%i/apis && /bin/chown %i:%i /run/user/%i/apis" +ExecStart=-/bin/sh -c "/bin/mkdir -Z '*' /run/user/%i/apis/ws && /bin/chown %i:%i /run/user/%i/apis/ws" |