Skip to contentSkip to conversation

weston-init: add dependency on SGX DDK service

PATCH In review Anand Balagopalakrishnan 2 participants 5 messages May 16, 2016 – May 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 weston-init: add dependency on SGX DDK service

- systemd starts Weston service much before DDK initialization
- Ensure that Weston service is started *after rc.pvr.service

---
 .../wayland/weston-init/weston.service             |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-init/weston.service
meta-arago-distro/recipes-graphics/wayland/weston-init/weston.service new file +16 -0
new file mode 100644
index 0000000..401c10e
@@ -0,0 +1,16 @@
+[Unit]
+Description=Weston Wayland compositor startup
+RequiresMountsFor=/run
+After=rc.pvr.service
+
+[Service]
+User=root
+EnvironmentFile=-/etc/default/weston
+Environment="XDG_RUNTIME_DIR=/run/user/root"
+ExecStartPre=/bin/mkdir -p /run/user/root
+ExecStartPre=/bin/chmod 0700 /run/user/root
+ExecStart=/usr/bin/openvt -v -e /usr/bin/weston -- $OPTARGS
+
+[Install]
+WantedBy=multi-user.target
+
Signature · 1 line
1.7.9.5
#1 lore raw

Anand,

This only solves one problem out of many - dependency on rc.pvr Unless we rewrite the entirety of our custom weston init and runWeston scripts to become systemd units, we won't get all the fixes, workarounds and customizations we've added in the past years - calibration handling being the major of them...

Signature · 1 line
Denys
Quoted 38 lines · Anand Balagopalakrishnan

- systemd starts Weston service much before DDK initialization
- Ensure that Weston service is started *after rc.pvr.service

---
 .../wayland/weston-init/weston.service             |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-init/weston.service
meta-arago-distro/recipes-graphics/wayland/weston-init/weston.service new file +16 -0
new file mode 100644
index 0000000..401c10e
@@ -0,0 +1,16 @@
+[Unit]
+Description=Weston Wayland compositor startup
+RequiresMountsFor=/run
+After=rc.pvr.service
+
+[Service]
+User=root
+EnvironmentFile=-/etc/default/weston
+Environment="XDG_RUNTIME_DIR=/run/user/root"
+ExecStartPre=/bin/mkdir -p /run/user/root
+ExecStartPre=/bin/chmod 0700 /run/user/root
+ExecStart=/usr/bin/openvt -v -e /usr/bin/weston -- $OPTARGS
+
+[Install]
+WantedBy=multi-user.target
+
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#2 lore raw

Denys,
Agreed. The intent of the patch was to fix only the out of sequence dependencies between DDK and Weston.

Eric,
Is there a plan to update the Weston scripts to systemd?

Regards,
Anand

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 8:43 PM
To: Balagopalakrishnan, Anand
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] weston-init: add dependency on SGX DDK service

Anand,

This only solves one problem out of many - dependency on rc.pvr Unless we rewrite the entirety of our custom weston init and runWeston scripts to become systemd units, we won't get all the fixes, workarounds and customizations we've added in the past years - calibration handling being the major of them...

--
Denys

Quoted 38 lines · Anand Balagopalakrishnan

- systemd starts Weston service much before DDK initialization
- Ensure that Weston service is started *after rc.pvr.service

---
 .../wayland/weston-init/weston.service             |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-init/weston.service
meta-arago-distro/recipes-graphics/wayland/weston-init/weston.service new file +16 -0
new file mode 100644
index 0000000..401c10e
@@ -0,0 +1,16 @@
+[Unit]
+Description=Weston Wayland compositor startup
+RequiresMountsFor=/run
+After=rc.pvr.service
+
+[Service]
+User=root
+EnvironmentFile=-/etc/default/weston
+Environment="XDG_RUNTIME_DIR=/run/user/root"
+ExecStartPre=/bin/mkdir -p /run/user/root
+ExecStartPre=/bin/chmod 0700 /run/user/root
+ExecStart=/usr/bin/openvt -v -e /usr/bin/weston -- $OPTARGS
+
+[Install]
+WantedBy=multi-user.target
+
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#3 lore raw

Untill all the features of existing intiscript are converted to systemd units (calibration and reloading/restarting of udev/weston), we should stick to the old initscripts for now:

http://arago-project.org/pipermail/meta-arago/2016-May/007660.html

Signature · 1 line
Denys
Quoted 64 lines · Anand

Denys,
Agreed. The intent of the patch was to fix only the out of sequence dependencies between DDK and Weston.

Eric,
Is there a plan to update the Weston scripts to systemd?

Regards,
Anand

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 8:43 PM
To: Balagopalakrishnan, Anand
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] weston-init: add dependency on SGX DDK service

Anand,

This only solves one problem out of many - dependency on rc.pvr Unless we rewrite the entirety of our custom weston init and runWeston scripts to become systemd units, we won't get all the fixes, workarounds and customizations we've added in the past years - calibration handling being the major of them...

--
Denys

Quoted 38 lines · Anand Balagopalakrishnan

- systemd starts Weston service much before DDK initialization
- Ensure that Weston service is started *after rc.pvr.service

---
 .../wayland/weston-init/weston.service             |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-init/weston.service
meta-arago-distro/recipes-graphics/wayland/weston-init/weston.service new file +16 -0
new file mode 100644
index 0000000..401c10e
@@ -0,0 +1,16 @@
+[Unit]
+Description=Weston Wayland compositor startup
+RequiresMountsFor=/run
+After=rc.pvr.service
+
+[Service]
+User=root
+EnvironmentFile=-/etc/default/weston
+Environment="XDG_RUNTIME_DIR=/run/user/root"
+ExecStartPre=/bin/mkdir -p /run/user/root
+ExecStartPre=/bin/chmod 0700 /run/user/root
+ExecStart=/usr/bin/openvt -v -e /usr/bin/weston -- $OPTARGS
+
+[Install]
+WantedBy=multi-user.target
+
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#4 lore raw

Ok. I had posted a comment on the other patch. Essentially, just remove weston service instead of removing the systemd unit directory.

Regards,
Anand

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, May 17, 2016 10:55 PM
To: Balagopalakrishnan, Anand
Cc: Chengalvala, Vivek; Ruei, Eric; [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] weston-init: add dependency on SGX DDK service

Untill all the features of existing intiscript are converted to systemd units (calibration and reloading/restarting of udev/weston), we should stick to the old initscripts for now:

http://arago-project.org/pipermail/meta-arago/2016-May/007660.html

--
Denys

Quoted 64 lines · Anand

Denys,
Agreed. The intent of the patch was to fix only the out of sequence dependencies between DDK and Weston.

Eric,
Is there a plan to update the Weston scripts to systemd?

Regards,
Anand

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, May 16, 2016 8:43 PM
To: Balagopalakrishnan, Anand
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH 1/1] weston-init: add dependency on SGX DDK service

Anand,

This only solves one problem out of many - dependency on rc.pvr Unless we rewrite the entirety of our custom weston init and runWeston scripts to become systemd units, we won't get all the fixes, workarounds and customizations we've added in the past years - calibration handling being the major of them...

--
Denys

Quoted 38 lines · Anand Balagopalakrishnan

- systemd starts Weston service much before DDK initialization
- Ensure that Weston service is started *after rc.pvr.service

---
 .../wayland/weston-init/weston.service             |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-init/weston.service
meta-arago-distro/recipes-graphics/wayland/weston-init/weston.service new file +16 -0
new file mode 100644
index 0000000..401c10e
@@ -0,0 +1,16 @@
+[Unit]
+Description=Weston Wayland compositor startup
+RequiresMountsFor=/run
+After=rc.pvr.service
+
+[Service]
+User=root
+EnvironmentFile=-/etc/default/weston
+Environment="XDG_RUNTIME_DIR=/run/user/root"
+ExecStartPre=/bin/mkdir -p /run/user/root
+ExecStartPre=/bin/chmod 0700 /run/user/root
+ExecStart=/usr/bin/openvt -v -e /usr/bin/weston -- $OPTARGS
+
+[Install]
+WantedBy=multi-user.target
+
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago