matrix-gui: replace SysVinit with systemd service
PATCH 1/1 matrix-gui: replace SysVinit with systemd service
--- .../recipes-core/matrix/matrix-gui/matrix-gui-2.0.service | 10 ++++++++++ meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb | 15 +++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-2.0.service new file +10 -0
@@ -0,0 +1,10 @@ +[Unit] +Description=Matrix GUI +After=weston.service + +[Service] +Type=forking +ExecStart=/etc/init.d/matrix-gui-2.0 start + +[Install] +WantedBy=multi-user.target
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +9 -6
@@ -6,14 +6,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d" SECTION = "multimedia" -PR = "r35" +PR = "r36" -INITSCRIPT_NAME = "matrix-gui-2.0" -INITSCRIPT_PARAMS = "defaults 97" +SYSTEMD_SERVICE_${PN} = "matrix-gui-2.0.service" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit update-rc.d +inherit systemd BRANCH ?= "master" SRCREV = "9a2d12590102fefc5c29fc9e8d346ce6b0198468"
@@ -23,6 +22,7 @@ MATRIX_INITSCRIPT = "${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \ file://${MATRIX_INITSCRIPT} \ file://php.ini \ + file://matrix-gui-2.0.service \ ${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'file://0001-execute_command-Stop-matrix-when-running-a-GUI-demo.patch', d), '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'file://0001-execute_command-workaround-for-GUI-apps-with-weston.patch', '', d)} \ "
@@ -46,10 +46,13 @@ do_install(){ sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/" ${WORKDIR}/${MATRIX_INITSCRIPT} sed -i -e "s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/" ${WORKDIR}/${MATRIX_INITSCRIPT} - # Install the init script - # TODO: replace init script with systemd files + # Install the script install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT} ${D}${sysconfdir}/init.d/matrix-gui-2.0 + + # Install the systemd unit file + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/matrix-gui-2.0.service ${D}${systemd_system_unitdir} } GUIDEPS = "matrix-gui-browser refresh-screen"
Signature · 1 line
1.9.1
Quoted 13 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- .../recipes-core/matrix/matrix-gui/matrix-gui-2.0.service | 10 ++++++++++ meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb | 15 +++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-2.0.servicemeta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-2.0.service new file +0
-0
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-2.0.service line 7
Quoted 7 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-2.0.service new file +7
-0@@ -0,0 +1,10 @@ +[Unit] +Description=Matrix GUI +After=weston.service + +[Service] +Type=forking +ExecStart=/etc/init.d/matrix-gui-2.0 start
Looks like it's still calling a legacy initscript - any particular reason?
Quoted 56 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-2.0.service new file +3
-0+ +[Install] +WantedBy=multi-user.targetmeta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +9
-6@@ -6,14 +6,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d" SECTION = "multimedia" -PR = "r35" +PR = "r36" -INITSCRIPT_NAME = "matrix-gui-2.0" -INITSCRIPT_PARAMS = "defaults 97" +SYSTEMD_SERVICE_${PN} = "matrix-gui-2.0.service" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit update-rc.d +inherit systemd BRANCH ?= "master" SRCREV = "9a2d12590102fefc5c29fc9e8d346ce6b0198468"@@ -23,6 +22,7 @@ MATRIX_INITSCRIPT = "${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \ file://${MATRIX_INITSCRIPT} \ file://php.ini \ + file://matrix-gui-2.0.service \ ${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'file://0001-execute_command-Stop-matrix-when-running-a-GUI-demo.patch', d), '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'file://0001-execute_command-workaround-for-GUI-apps-with-weston.patch', '', d)} \ "@@ -46,10 +46,13 @@ do_install(){ sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/" ${WORKDIR}/${MATRIX_INITSCRIPT} sed -i -e "s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/" ${WORKDIR}/${MATRIX_INITSCRIPT} - # Install the init script - # TODO: replace init script with systemd files + # Install the script install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT} ${D}${sysconfdir}/init.d/matrix-gui-2.0 + + # Install the systemd unit file + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/matrix-gui-2.0.service ${D}${systemd_system_unitdir} } GUIDEPS = "matrix-gui-browser refresh-screen"Signature · 6 lines
1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 26 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:43 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 4 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- .../recipes-core/matrix/matrix-gui/matrix-gui-2.0.service | 10 ++++++++++ meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb | 15+++++++++------
Quoted 2 lines
2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-2.0.service
Review
Quoted 2 lines
(quoted diff) +0
-02.0.service b/meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- 2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-
Quoted 4 lines
new file mode 100644
index 0000000..3ce1024meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +0
-02.0.service
Quoted 10 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- line 7
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +7
-0@@ -0,0 +1,10 @@ +[Unit] +Description=Matrix GUI +After=weston.service + +[Service] +Type=forking +ExecStart=/etc/init.d/matrix-gui-2.0 startLooks like it's still calling a legacy initscript - any particular reason?
Yes, we would like to keep the original scripts, as they are also used for stopping/starting matrix GUI when running GUI based demos (/usr/share/matrix-gui-2.0/execute_command.sh):
if [ $program_type == gui ]
then
/etc/init.d/matrix-gui-2.0 stop
..
if [ $program_type == gui ]
then
...
/etc/init.d/matrix-gui-2.0 start
fi
Quoted 71 lines
Review
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +3
-0+ +[Install] +WantedBy=multi-user.target(quoted diff) +0
-0b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb LIC_FILES_CHKSUM =
Quoted 4 lines
index d8aa00b..c79f13e 100644
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0@@ -6,14 +6,13 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT =
Quoted 18 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +3
-4SECTION = "multimedia" -PR = "r35" +PR = "r36" -INITSCRIPT_NAME = "matrix-gui-2.0" -INITSCRIPT_PARAMS = "defaults 97" +SYSTEMD_SERVICE_${PN} = "matrix-gui-2.0.service" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit update-rc.d +inherit systemd BRANCH ?= "master" SRCREV = "9a2d12590102fefc5c29fc9e8d346ce6b0198468"@@ -23,6 +22,7 @@ MATRIX_INITSCRIPT ="${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 22
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = "${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-0file://${MATRIX_INITSCRIPT} \ file://php.ini \ + file://matrix-gui-2.0.service \ ${@base_conditional('QT_PROVIDER', 'qt5',bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'file://0001- execute_command-Stop-matrix-when-running-a-GUI-demo.patch', d), '', d)} \
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 27
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'file://0001-execute_command-workaround-for-GUI-apps-with-weston.patch', '', d)} \
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 46
Quoted 3 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0"@@ -46,10 +46,13 @@ do_install(){ sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/"${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 47
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0sed -i -e"s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/" ${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-2- # Install the init script - # TODO: replace init script with systemd files + # Install the script install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT}${D}${sysconfdir}/init.d/matrix-gui-2.0
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +4
-0+ + # Install the systemd unit file + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/matrix-gui-2.0.service${D}${systemd_system_unitdir}
Quoted 10 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-1} GUIDEPS = "matrix-gui-browser refresh-screen" --1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 44 lines · Hongmei
Quoted 26 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:43 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 4 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- .../recipes-core/matrix/matrix-gui/matrix-gui-2.0.service | 10 ++++++++++ meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb | 15+++++++++------
Quoted 2 lines
2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-2.0.service
Review
Quoted 2 lines
(quoted diff) +0
-02.0.service b/meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- 2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-
Quoted 4 lines
new file mode 100644
index 0000000..3ce1024meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +0
-02.0.service
Quoted 10 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- line 7
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +7
-0@@ -0,0 +1,10 @@ +[Unit] +Description=Matrix GUI +After=weston.service + +[Service] +Type=forking +ExecStart=/etc/init.d/matrix-gui-2.0 startLooks like it's still calling a legacy initscript - any particular reason?
Yes, we would like to keep the original scripts, as they are also used for stopping/starting matrix GUI when running GUI based demos (
/usr/share/matrix-gui-2.0/execute_command.sh):if [ $program_type == gui ]
then
/etc/init.d/matrix-gui-2.0stop
..
Quoted 5 lines
if [ $program_type == gui ]
then
...
/etc/init.d/matrix-gui-2.0start
fi
Any plans to completely moving to systemd and calling systemctl start/stop?
Quoted 69 lines
Quoted 69 lines
Review
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +3
-0+ +[Install] +WantedBy=multi-user.target(quoted diff) +0
-0b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb LIC_FILES_CHKSUM =
Quoted 4 lines
index d8aa00b..c79f13e 100644
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0@@ -6,14 +6,13 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT =
Quoted 18 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +3
-4SECTION = "multimedia" -PR = "r35" +PR = "r36" -INITSCRIPT_NAME = "matrix-gui-2.0" -INITSCRIPT_PARAMS = "defaults 97" +SYSTEMD_SERVICE_${PN} = "matrix-gui-2.0.service" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit update-rc.d +inherit systemd BRANCH ?= "master" SRCREV = "9a2d12590102fefc5c29fc9e8d346ce6b0198468"@@ -23,6 +22,7 @@ MATRIX_INITSCRIPT ="${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 22
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = "${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-0file://${MATRIX_INITSCRIPT} \ file://php.ini \ + file://matrix-gui-2.0.service \ ${@base_conditional('QT_PROVIDER', 'qt5',bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'file://0001- execute_command-Stop-matrix-when-running-a-GUI-demo.patch', d), '', d)} \
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 27
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'file://0001-execute_command-workaround-for-GUI-apps-with-weston.patch', '', d)} \
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 46
Quoted 3 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0"@@ -46,10 +46,13 @@ do_install(){ sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/"${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 47
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0sed -i -e"s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/" ${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-2- # Install the init script - # TODO: replace init script with systemd files + # Install the script install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT}${D}${sysconfdir}/init.d/matrix-gui-2.0
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +4
-0+ + # Install the systemd unit file + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/matrix-gui-2.0.service${D}${systemd_system_unitdir}
Quoted 10 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-1} GUIDEPS = "matrix-gui-browser refresh-screen" --1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 58 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:54 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 8 lines · Hongmei
Quoted 8 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:43 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 4 lines
Quoted 4 lines · Hongmei Gou
Quoted 3 lines
Signed-off-by Hongmei Gou <[email protected]>--- .../recipes-core/matrix/matrix-gui/matrix-gui-2.0.service | 10++++++++++
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb | 15+++++++++------
Quoted 2 lines
2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-2.0.service
Review
Quoted 2 lines
(quoted diff) +0
-0gui-
Quoted 1 line
Quoted 1 line
2.0.service b/meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-
gui-
Quoted 17 lines
Quoted 6 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-
Quoted 4 lines
new file mode 100644
index 0000000..3ce1024meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +0
-02.0.service
Quoted 10 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- line 7
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +7
-0@@ -0,0 +1,10 @@ +[Unit] +Description=Matrix GUI +After=weston.service + +[Service] +Type=forking +ExecStart=/etc/init.d/matrix-gui-2.0 startLooks like it's still calling a legacy initscript - any particular reason?
Quoted 1 line
Yes, we would like to keep the original scripts, as they are also used for
stopping/starting matrix GUI when running GUI based demos (
/usr/share/matrix-gui-2.0/execute_command.sh):Quoted 6 lines
if [ $program_type == gui ]
then
/etc/init.d/matrix-gui-2.0stop
..
Quoted 7 lines
Quoted 5 lines
if [ $program_type == gui ]
then
...
/etc/init.d/matrix-gui-2.0start
fiAny plans to completely moving to systemd and calling systemctl start/stop?
With the current patch, "systemctl start/stop matrix-gui-2.0 " can start/stop matrix successfully. execute_command.sh can be updated to use systemctl start/stop.
As for /etc/init.d/matrix-gui-2.0 (attached), I am not seeing anything specific to init.
We can install it to /usr/bin instead of /etc/init.d, and then modify the path in matrix-gui-2.0.service, if this is preferable.
Quoted 73 lines
Quoted 31 lines
Quoted 31 lines
Review
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +3
-0+ +[Install] +WantedBy=multi-user.target(quoted diff) +0
-0b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb LIC_FILES_CHKSUM =
Quoted 4 lines
index d8aa00b..c79f13e 100644
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0@@ -6,14 +6,13 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT =
Quoted 18 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +3
-4SECTION = "multimedia" -PR = "r35" +PR = "r36" -INITSCRIPT_NAME = "matrix-gui-2.0" -INITSCRIPT_PARAMS = "defaults 97" +SYSTEMD_SERVICE_${PN} = "matrix-gui-2.0.service" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit update-rc.d +inherit systemd BRANCH ?= "master" SRCREV = "9a2d12590102fefc5c29fc9e8d346ce6b0198468"@@ -23,6 +22,7 @@ MATRIX_INITSCRIPT ="${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 22
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = "${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-0file://${MATRIX_INITSCRIPT} \ file://php.ini \ + file://matrix-gui-2.0.service \ ${@base_conditional('QT_PROVIDER', 'qt5',bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'file://0001- execute_command-Stop-matrix-when-running-a-GUI-demo.patch', d), '',
d)}
Quoted 3 lines
Quoted 3 lines
\
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 27
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'file://0001-execute_command-workaround-for-GUI-apps-with-weston.patch', '', d)}
\
Quoted 29 lines
Quoted 29 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 46
Quoted 3 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0"@@ -46,10 +46,13 @@ do_install(){ sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/"${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 47
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0sed -i -e"s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/" ${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-2- # Install the init script - # TODO: replace init script with systemd files + # Install the script install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT}${D}${sysconfdir}/init.d/matrix-gui-2.0
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +4
-0+ + # Install the systemd unit file + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/matrix-gui-2.0.service${D}${systemd_system_unitdir}
Quoted 10 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-1} GUIDEPS = "matrix-gui-browser refresh-screen" --1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 66 lines · Hongmei
Quoted 58 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:54 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 8 lines · Hongmei
Quoted 8 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:43 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 4 lines
Quoted 4 lines · Hongmei Gou
Quoted 3 lines
Signed-off-by Hongmei Gou <[email protected]>--- .../recipes-core/matrix/matrix-gui/matrix-gui-2.0.service | 10++++++++++
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb | 15+++++++++------
Quoted 2 lines
2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-2.0.service
Review
Quoted 2 lines
(quoted diff) +0
-0gui-
Quoted 1 line
Quoted 1 line
2.0.service b/meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-
gui-
Quoted 17 lines
Quoted 6 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui-
Quoted 4 lines
new file mode 100644
index 0000000..3ce1024meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +0
-02.0.service
Quoted 10 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- line 7
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +7
-0@@ -0,0 +1,10 @@ +[Unit] +Description=Matrix GUI +After=weston.service + +[Service] +Type=forking +ExecStart=/etc/init.d/matrix-gui-2.0 startLooks like it's still calling a legacy initscript - any particular reason?
Quoted 1 line
Yes, we would like to keep the original scripts, as they are also used for
stopping/starting matrix GUI when running GUI based demos (
/usr/share/matrix-gui-2.0/execute_command.sh):Quoted 6 lines
if [ $program_type == gui ]
then
/etc/init.d/matrix-gui-2.0stop
..Quoted 7 lines
Quoted 5 lines
if [ $program_type == gui ]
then
...
/etc/init.d/matrix-gui-2.0start
fiAny plans to completely moving to systemd and calling systemctl start/stop?
Quoted 8 lines
With the current patch, "systemctl start/stop matrix-gui-2.0 " can start/stop matrix successfully.
execute_command.shcan be updated to use systemctl start/stop.As for
/etc/init.d/matrix-gui-2.0(attached), I am not seeing anything specific to init.
We can install it to/usr/bininstead of/etc/init.d, and then modify the path in matrix-gui-2.0.service, if this is preferable.
If you keep it in /etc/initd.d, wouldn't systemd try to automatically convert it and potentially conflict with your own native unit file?
Quoted 71 lines
Quoted 71 lines
Quoted 29 lines
Quoted 29 lines
Review
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- new file +3
-0+ +[Install] +WantedBy=multi-user.target(quoted diff) +0
-0b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb LIC_FILES_CHKSUM =
Quoted 4 lines
index d8aa00b..c79f13e 100644
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0@@ -6,14 +6,13 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT =
Quoted 18 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +3
-4SECTION = "multimedia" -PR = "r35" +PR = "r36" -INITSCRIPT_NAME = "matrix-gui-2.0" -INITSCRIPT_PARAMS = "defaults 97" +SYSTEMD_SERVICE_${PN} = "matrix-gui-2.0.service" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit update-rc.d +inherit systemd BRANCH ?= "master" SRCREV = "9a2d12590102fefc5c29fc9e8d346ce6b0198468"@@ -23,6 +22,7 @@ MATRIX_INITSCRIPT ="${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 22
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = "${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-0file://${MATRIX_INITSCRIPT} \ file://php.ini \ + file://matrix-gui-2.0.service \ ${@base_conditional('QT_PROVIDER', 'qt5',bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'file://0001- execute_command-Stop-matrix-when-running-a-GUI-demo.patch', d), '',
d)}
Quoted 3 lines
Quoted 3 lines
\
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 27
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'file://0001-execute_command-workaround-for-GUI-apps-with-weston.patch', '', d)}
\
Quoted 29 lines
Quoted 29 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 46
Quoted 3 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0"@@ -46,10 +46,13 @@ do_install(){ sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/"${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 47
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0sed -i -e"s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/" ${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-2- # Install the init script - # TODO: replace init script with systemd files + # Install the script install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT}${D}${sysconfdir}/init.d/matrix-gui-2.0
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +4
-0+ + # Install the systemd unit file + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/matrix-gui-2.0.service${D}${systemd_system_unitdir}
Quoted 10 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-1} GUIDEPS = "matrix-gui-browser refresh-screen" --1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 84 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 5:37 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 18 lines · Hongmei
Quoted 18 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:54 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 9 lines · Hongmei
Quoted 9 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:43 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceOn Tue, Nov 20, 2018 at 04:33:55PM -0500, Hongmei Gou wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Signed-off-by Hongmei Gou <[email protected]>--- .../recipes-core/matrix/matrix-gui/matrix-gui-2.0.service | 10++++++++++
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb | 15+++++++++------
Quoted 2 lines
2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
gui/matrix-gui-2.0.service
Review
Quoted 2 lines
(quoted diff) +0
-0gui/matrix-
Quoted 2 lines
Quoted 2 lines
gui-
Quoted 1 line
Quoted 1 line
2.0.service b/meta-arago-extras/recipes-core/matrix/matrix-
gui/matrix-
Quoted 6 lines
Quoted 6 lines
gui-
Quoted 5 lines
Quoted 5 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-
Quoted 4 lines
new file mode 100644
index 0000000..3ce1024meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +0
-0gui-
Quoted 21 lines
Quoted 21 lines
Quoted 12 lines
Quoted 11 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- line 7
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +7
-0@@ -0,0 +1,10 @@ +[Unit] +Description=Matrix GUI +After=weston.service + +[Service] +Type=forking +ExecStart=/etc/init.d/matrix-gui-2.0 startLooks like it's still calling a legacy initscript - any particular reason?
Quoted 1 line
Yes, we would like to keep the original scripts, as they are also used for
stopping/starting matrix GUI when running GUI based demos (
/usr/share/matrix-gui-2.0/execute_command.sh):Quoted 6 lines
if [ $program_type == gui ]
then
/etc/init.d/matrix-gui-2.0stop
..Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
if [ $program_type == gui ]
then
...
/etc/init.d/matrix-gui-2.0start
fiAny plans to completely moving to systemd and calling systemctl
start/stop?
Quoted 5 lines
With the current patch, "systemctl start/stop matrix-gui-2.0 " can start/stop matrix successfully.
execute_command.shcan be updated to use systemctl start/stop.
Quoted 7 lines
Quoted 4 lines
As for
/etc/init.d/matrix-gui-2.0(attached), I am not seeing anything specific to init.
We can install it to/usr/bininstead of/etc/init.d, and then modify the path in matrix-gui-2.0.service, if this is preferable.If you keep it in
/etc/initd.d, wouldn't systemd try to automatically convert it and potentially conflict with your own native unit file?
systemd is not doing the conversion automatically.
Output of "systemctl cat matrix-gui-2.0.service" with the current patch:
[[0;1;34m# /lib/systemd/system/matrix-gui-2.0.service[[0m [Unit]
Description=Matrix GUI
After=weston.service
[Service]
Type=forking
ExecStart=/etc/init.d/matrix-gui-2.0 start
[Install]
WantedBy=multi-user.target
Output of "systemctl cat matrix-gui-2.0.service" before the patch:
[[0;1;34m# /run/systemd/generator.late/matrix-gui-2.0.service[[0m # Automatically generated by systemd-sysv-generator
[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/matrix-gui-2.0
Before=multi-user.target
Before=multi-user.target
Before=multi-user.target
Before=thermal-zone-init.service
After=thttpd.service
After=umountnfs.service
After=rng-tools.service
After=redis-server.service
After=dropbear.service
After=telnetd.service
After=gdbserverproxy.service
After=weston.service
After=rc.pvr.service
After=uim-sysfs.service
[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/init.d/matrix-gui-2.0 start
ExecStop=/etc/init.d/matrix-gui-2.0 stop
Quoted 78 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Review
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +3
-0+ +[Install] +WantedBy=multi-user.target(quoted diff) +0
-0gui_2.0.bb
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb LIC_FILES_CHKSUM =
Quoted 4 lines
index d8aa00b..c79f13e 100644
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0@@ -6,14 +6,13 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT =
Quoted 18 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +3
-4SECTION = "multimedia" -PR = "r35" +PR = "r36" -INITSCRIPT_NAME = "matrix-gui-2.0" -INITSCRIPT_PARAMS = "defaults 97" +SYSTEMD_SERVICE_${PN} = "matrix-gui-2.0.service" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit update-rc.d +inherit systemd BRANCH ?= "master" SRCREV = "9a2d12590102fefc5c29fc9e8d346ce6b0198468"@@ -23,6 +22,7 @@ MATRIX_INITSCRIPT ="${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 22
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = "${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-0file://${MATRIX_INITSCRIPT} \ file://php.ini \ + file://matrix-gui-2.0.service \ ${@base_conditional('QT_PROVIDER', 'qt5',bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'file://0001- execute_command-Stop-matrix-when-running-a-GUI-demo.patch',
d), '',
Quoted 3 lines
Quoted 3 lines
d)}
Quoted 2 lines
Quoted 2 lines
\
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0${@bb.utils.contains('DISTRO_FEATURES', 'wayland','file://0001-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
execute_command-workaround-for-GUI-apps-with-weston.patch', '',
d)}
Quoted 30 lines
Quoted 30 lines
\
Quoted 29 lines
Quoted 29 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 46
Quoted 3 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0"@@ -46,10 +46,13 @@ do_install(){ sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/"${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 47
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0sed -i -e"s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/" ${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-2- # Install the init script - # TODO: replace init script with systemd files + # Install the script install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT}${D}${sysconfdir}/init.d/matrix-gui-2.0
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +4
-0+ + # Install the systemd unit file + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/matrix-gui-2.0.service${D}${systemd_system_unitdir}
Quoted 10 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-1} GUIDEPS = "matrix-gui-browser refresh-screen" --1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 100 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Gou, Hongmei
Sent: Tuesday, November 20, 2018 5:43 PM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: [EXTERNAL] Re: [meta-arago] [rocko/master] [PATCH] matrix-gui:
replace SysVinit with systemd serviceQuoted 8 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 5:37 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 16 lines
Quoted 15 lines · Hongmei
Quoted 15 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:54 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 6 lines · Hongmei
Quoted 6 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:43 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui:replace
Quoted 18 lines
Quoted 11 lines
Quoted 11 lines
Quoted 6 lines
Quoted 6 lines
SysVinit with systemd service
Quoted 3 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- .../recipes-core/matrix/matrix-gui/matrix-gui-2.0.service | 10++++++++++
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb | 15+++++++++------
Quoted 2 lines
2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
gui/matrix-gui-2.0.service
Review
Quoted 2 lines
(quoted diff) +0
-0gui/matrix-
Quoted 2 lines
Quoted 2 lines
gui-
Quoted 1 line
Quoted 1 line
2.0.service b/meta-arago-extras/recipes-core/matrix/matrix-
Quoted 21 lines
gui/matrix-
Quoted 6 lines
Quoted 6 lines
gui-
Quoted 5 lines
Quoted 5 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-
Quoted 4 lines
new file mode 100644
index 0000000..3ce1024meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +0
-0gui-
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 11 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- line 7
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +7
-0@@ -0,0 +1,10 @@ +[Unit] +Description=Matrix GUI +After=weston.service + +[Service] +Type=forking +ExecStart=/etc/init.d/matrix-gui-2.0 startLooks like it's still calling a legacy initscript - any particular reason?
Yes, we would like to keep the original scripts, as they are also used
for
Quoted 26 lines
Quoted 8 lines
Quoted 8 lines
stopping/starting matrix GUI when running GUI based demos (
/usr/share/matrix-gui-2.0/execute_command.sh):Quoted 6 lines
if [ $program_type == gui ]
then
/etc/init.d/matrix-gui-2.0stop
..Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
if [ $program_type == gui ]
then
...
/etc/init.d/matrix-gui-2.0start
fiAny plans to completely moving to systemd and calling systemctl
start/stop?
Quoted 9 lines
With the current patch, "systemctl start/stop matrix-gui-2.0 " can start/stop matrix successfully.
execute_command.shcan be updated to use systemctl start/stop.As for
/etc/init.d/matrix-gui-2.0(attached), I am not seeing anything specific to init.
We can install it to/usr/bininstead of/etc/init.d, and then modify the path in matrix-gui-2.0.service, if this is preferable.
Quoted 4 lines
Quoted 2 lines
If you keep it in
/etc/initd.d, wouldn't systemd try to automatically convert it and potentially conflict with your own native unit file?systemd is not doing the conversion automatically.
Please note that /etc/rc5.d no longer has "S97matrix-gui-2.0 -> ../init.d/matrix-gui-2.0" with the current patch. If I understand it correctly, no automatic conversion is done for matrix-gui-2.0 because of this.
Quoted 133 lines
Output of "systemctl cat matrix-gui-2.0.service" with the current patch:
[[0;1;34m# /lib/systemd/system/matrix-gui-2.0.service[[0m [Unit]
Description=Matrix GUI
After=weston.service[Service]
Type=forking
ExecStart=/etc/init.d/matrix-gui-2.0 start[Install]
WantedBy=multi-user.targetOutput of "systemctl cat matrix-gui-2.0.service" before the patch:
[[0;1;34m# /run/systemd/generator.late/matrix-gui-2.0.service[[0m # Automatically generated by systemd-sysv-generator[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/matrix-gui-2.0
Before=multi-user.target
Before=multi-user.target
Before=multi-user.target
Before=thermal-zone-init.service
After=thttpd.service
After=umountnfs.service
After=rng-tools.service
After=redis-server.service
After=dropbear.service
After=telnetd.service
After=gdbserverproxy.service
After=weston.service
After=rc.pvr.service
After=uim-sysfs.service[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/init.d/matrix-gui-2.0 start
ExecStop=/etc/init.d/matrix-gui-2.0 stopQuoted 38 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Review
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +3
-0+ +[Install] +WantedBy=multi-user.target(quoted diff) +0
-0gui_2.0.bb
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb LIC_FILES_CHKSUM =
Quoted 4 lines
index d8aa00b..c79f13e 100644
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0@@ -6,14 +6,13 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT =
Quoted 18 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +3
-4SECTION = "multimedia" -PR = "r35" +PR = "r36" -INITSCRIPT_NAME = "matrix-gui-2.0" -INITSCRIPT_PARAMS = "defaults 97" +SYSTEMD_SERVICE_${PN} = "matrix-gui-2.0.service" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit update-rc.d +inherit systemd BRANCH ?= "master" SRCREV = "9a2d12590102fefc5c29fc9e8d346ce6b0198468"@@ -23,6 +22,7 @@ MATRIX_INITSCRIPT ="${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 22
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-0file://${MATRIX_INITSCRIPT} \ file://php.ini \ + file://matrix-gui-2.0.service \ ${@base_conditional('QT_PROVIDER', 'qt5',Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'file://0001- execute_command-Stop-matrix-when-running-a-GUI-demo.patch',
d), '',
Quoted 3 lines
Quoted 3 lines
d)}
Quoted 2 lines
Quoted 2 lines
\
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0${@bb.utils.contains('DISTRO_FEATURES', 'wayland','file://0001-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
execute_command-workaround-for-GUI-apps-with-weston.patch',
'',
Quoted 8 lines
d)}
Quoted 7 lines
Quoted 7 lines
\
Quoted 6 lines
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 46
Quoted 3 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0"@@ -46,10 +46,13 @@ do_install(){ sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/"${WORKDIR}/${MATRIX_INITSCRIPT}
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0sed -i -e"s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/"
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 50
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-2- # Install the init script - # TODO: replace init script with systemd files + # Install the script install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT}${D}${sysconfdir}/init.d/matrix-gui-2.0
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 54
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +4
-0+ + # Install the systemd unit file + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/matrix-gui-2.0.service${D}${systemd_system_unitdir}
Quoted 2 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0}Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-1GUIDEPS = "matrix-gui-browser refresh-screen" --1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 100 lines · Hongmei
Quoted 100 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Gou, Hongmei
Sent: Tuesday, November 20, 2018 5:43 PM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: [EXTERNAL] Re: [meta-arago] [rocko/master] [PATCH] matrix-gui:
replace SysVinit with systemd serviceQuoted 8 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 5:37 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 16 lines
Quoted 15 lines · Hongmei
Quoted 15 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:54 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 6 lines · Hongmei
Quoted 6 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:43 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui:replace
Quoted 18 lines
Quoted 11 lines
Quoted 11 lines
Quoted 6 lines
Quoted 6 lines
SysVinit with systemd service
Quoted 3 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- .../recipes-core/matrix/matrix-gui/matrix-gui-2.0.service | 10++++++++++
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb | 15+++++++++------
Quoted 2 lines
2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
gui/matrix-gui-2.0.service
Review
Quoted 2 lines
(quoted diff) +0
-0gui/matrix-
Quoted 2 lines
Quoted 2 lines
gui-
Quoted 1 line
Quoted 1 line
2.0.service b/meta-arago-extras/recipes-core/matrix/matrix-
Quoted 21 lines
gui/matrix-
Quoted 6 lines
Quoted 6 lines
gui-
Quoted 5 lines
Quoted 5 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-
Quoted 4 lines
new file mode 100644
index 0000000..3ce1024meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +0
-0gui-
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 11 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- line 7
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +7
-0@@ -0,0 +1,10 @@ +[Unit] +Description=Matrix GUI +After=weston.service + +[Service] +Type=forking +ExecStart=/etc/init.d/matrix-gui-2.0 startLooks like it's still calling a legacy initscript - any particular reason?
Yes, we would like to keep the original scripts, as they are also used
for
Quoted 26 lines
Quoted 8 lines
Quoted 8 lines
stopping/starting matrix GUI when running GUI based demos (
/usr/share/matrix-gui-2.0/execute_command.sh):Quoted 6 lines
if [ $program_type == gui ]
then
/etc/init.d/matrix-gui-2.0stop
..Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
if [ $program_type == gui ]
then
...
/etc/init.d/matrix-gui-2.0start
fiAny plans to completely moving to systemd and calling systemctl
start/stop?
Quoted 9 lines
With the current patch, "systemctl start/stop matrix-gui-2.0 " can start/stop matrix successfully.
execute_command.shcan be updated to use systemctl start/stop.As for
/etc/init.d/matrix-gui-2.0(attached), I am not seeing anything specific to init.
We can install it to/usr/bininstead of/etc/init.d, and then modify the path in matrix-gui-2.0.service, if this is preferable.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
If you keep it in
/etc/initd.d, wouldn't systemd try to automatically convert it and potentially conflict with your own native unit file?systemd is not doing the conversion automatically.
Please note that
/etc/rc5.dno longer has "S97matrix-gui-2.0 -> ../init.d/matrix-gui-2.0" with the current patch. If I understand it correctly, no automatic conversion is done for matrix-gui-2.0 because of this.
Ah, good point - you removed update-rc.d
Quoted 132 lines
Quoted 132 lines
Output of "systemctl cat matrix-gui-2.0.service" with the current patch:
[[0;1;34m# /lib/systemd/system/matrix-gui-2.0.service[[0m [Unit]
Description=Matrix GUI
After=weston.service[Service]
Type=forking
ExecStart=/etc/init.d/matrix-gui-2.0 start[Install]
WantedBy=multi-user.targetOutput of "systemctl cat matrix-gui-2.0.service" before the patch:
[[0;1;34m# /run/systemd/generator.late/matrix-gui-2.0.service[[0m # Automatically generated by systemd-sysv-generator[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/matrix-gui-2.0
Before=multi-user.target
Before=multi-user.target
Before=multi-user.target
Before=thermal-zone-init.service
After=thttpd.service
After=umountnfs.service
After=rng-tools.service
After=redis-server.service
After=dropbear.service
After=telnetd.service
After=gdbserverproxy.service
After=weston.service
After=rc.pvr.service
After=uim-sysfs.service[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/init.d/matrix-gui-2.0 start
ExecStop=/etc/init.d/matrix-gui-2.0 stopQuoted 38 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Review
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +3
-0+ +[Install] +WantedBy=multi-user.target(quoted diff) +0
-0gui_2.0.bb
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb LIC_FILES_CHKSUM =
Quoted 4 lines
index d8aa00b..c79f13e 100644
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0@@ -6,14 +6,13 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT =
Quoted 18 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +3
-4SECTION = "multimedia" -PR = "r35" +PR = "r36" -INITSCRIPT_NAME = "matrix-gui-2.0" -INITSCRIPT_PARAMS = "defaults 97" +SYSTEMD_SERVICE_${PN} = "matrix-gui-2.0.service" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit update-rc.d +inherit systemd BRANCH ?= "master" SRCREV = "9a2d12590102fefc5c29fc9e8d346ce6b0198468"@@ -23,6 +22,7 @@ MATRIX_INITSCRIPT ="${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 22
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-0file://${MATRIX_INITSCRIPT} \ file://php.ini \ + file://matrix-gui-2.0.service \ ${@base_conditional('QT_PROVIDER', 'qt5',Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'file://0001- execute_command-Stop-matrix-when-running-a-GUI-demo.patch',
d), '',
Quoted 3 lines
Quoted 3 lines
d)}
Quoted 2 lines
Quoted 2 lines
\
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0${@bb.utils.contains('DISTRO_FEATURES', 'wayland','file://0001-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
execute_command-workaround-for-GUI-apps-with-weston.patch',
'',
Quoted 8 lines
d)}
Quoted 7 lines
Quoted 7 lines
\
Quoted 6 lines
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 46
Quoted 3 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0"@@ -46,10 +46,13 @@ do_install(){ sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/"${WORKDIR}/${MATRIX_INITSCRIPT}
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0sed -i -e"s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/"
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 50
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-2- # Install the init script - # TODO: replace init script with systemd files + # Install the script install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT}${D}${sysconfdir}/init.d/matrix-gui-2.0
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 54
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +4
-0+ + # Install the systemd unit file + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/matrix-gui-2.0.service${D}${systemd_system_unitdir}
Quoted 2 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0}Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-1GUIDEPS = "matrix-gui-browser refresh-screen" --1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 104 lines · Hongmei
Quoted 84 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 5:37 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 18 lines · Hongmei
Quoted 18 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:54 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 9 lines · Hongmei
Quoted 9 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:43 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceOn Tue, Nov 20, 2018 at 04:33:55PM -0500, Hongmei Gou wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Signed-off-by Hongmei Gou <[email protected]>--- .../recipes-core/matrix/matrix-gui/matrix-gui-2.0.service | 10++++++++++
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb | 15+++++++++------
Quoted 2 lines
2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
gui/matrix-gui-2.0.service
Review
Quoted 2 lines
(quoted diff) +0
-0gui/matrix-
Quoted 2 lines
Quoted 2 lines
gui-
Quoted 1 line
Quoted 1 line
2.0.service b/meta-arago-extras/recipes-core/matrix/matrix-
gui/matrix-
Quoted 6 lines
Quoted 6 lines
gui-
Quoted 5 lines
Quoted 5 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-
Quoted 4 lines
new file mode 100644
index 0000000..3ce1024meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +0
-0gui-
Quoted 21 lines
Quoted 21 lines
Quoted 12 lines
Quoted 11 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- line 7
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +7
-0@@ -0,0 +1,10 @@ +[Unit] +Description=Matrix GUI +After=weston.service + +[Service] +Type=forking +ExecStart=/etc/init.d/matrix-gui-2.0 startLooks like it's still calling a legacy initscript - any particular reason?
Quoted 1 line
Yes, we would like to keep the original scripts, as they are also used for
stopping/starting matrix GUI when running GUI based demos (
/usr/share/matrix-gui-2.0/execute_command.sh):Quoted 6 lines
if [ $program_type == gui ]
then
/etc/init.d/matrix-gui-2.0stop
..Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
if [ $program_type == gui ]
then
...
/etc/init.d/matrix-gui-2.0start
fiAny plans to completely moving to systemd and calling systemctl
start/stop?
Quoted 5 lines
With the current patch, "systemctl start/stop matrix-gui-2.0 " can start/stop matrix successfully.
execute_command.shcan be updated to use systemctl start/stop.Quoted 7 lines
Quoted 4 lines
As for
/etc/init.d/matrix-gui-2.0(attached), I am not seeing anything specific to init.
We can install it to/usr/bininstead of/etc/init.d, and then modify the path in matrix-gui-2.0.service, if this is preferable.If you keep it in
/etc/initd.d, wouldn't systemd try to automatically convert it and potentially conflict with your own native unit file?systemd is not doing the conversion automatically.
Output of "systemctl cat matrix-gui-2.0.service" with the current patch:
[[0;1;34m# /lib/systemd/system/matrix-gui-2.0.service[[0m [Unit]
Description=Matrix GUI
After=weston.service[Service]
Type=forking
ExecStart=/etc/init.d/matrix-gui-2.0 start
Quoted 5 lines
[Install]
WantedBy=multi-user.targetOutput of "systemctl cat matrix-gui-2.0.service" before the patch:
[[0;1;34m# /run/systemd/generator.late/matrix-gui-2.0.service[[0m
Does this file also exist with the patch?
Quoted 111 lines
# Automatically generated by systemd-sysv-generator
[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/matrix-gui-2.0
Before=multi-user.target
Before=multi-user.target
Before=multi-user.target
Before=thermal-zone-init.service
After=thttpd.service
After=umountnfs.service
After=rng-tools.service
After=redis-server.service
After=dropbear.service
After=telnetd.service
After=gdbserverproxy.service
After=weston.service
After=rc.pvr.service
After=uim-sysfs.service[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/init.d/matrix-gui-2.0 start
ExecStop=/etc/init.d/matrix-gui-2.0 stopQuoted 78 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Review
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui/matrix- new file +3
-0+ +[Install] +WantedBy=multi-user.target(quoted diff) +0
-0gui_2.0.bb
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb LIC_FILES_CHKSUM =
Quoted 4 lines
index d8aa00b..c79f13e 100644
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0@@ -6,14 +6,13 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT =
Quoted 18 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +3
-4SECTION = "multimedia" -PR = "r35" +PR = "r36" -INITSCRIPT_NAME = "matrix-gui-2.0" -INITSCRIPT_PARAMS = "defaults 97" +SYSTEMD_SERVICE_${PN} = "matrix-gui-2.0.service" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit update-rc.d +inherit systemd BRANCH ?= "master" SRCREV = "9a2d12590102fefc5c29fc9e8d346ce6b0198468"@@ -23,6 +22,7 @@ MATRIX_INITSCRIPT ="${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 22
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb MATRIX_INITSCRIPT = · line 26
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-0file://${MATRIX_INITSCRIPT} \ file://php.ini \ + file://matrix-gui-2.0.service \ ${@base_conditional('QT_PROVIDER', 'qt5',bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'file://0001- execute_command-Stop-matrix-when-running-a-GUI-demo.patch',
d), '',
Quoted 3 lines
Quoted 3 lines
d)}
Quoted 2 lines
Quoted 2 lines
\
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0${@bb.utils.contains('DISTRO_FEATURES', 'wayland','file://0001-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
execute_command-workaround-for-GUI-apps-with-weston.patch', '',
d)}
Quoted 30 lines
Quoted 30 lines
\
Quoted 29 lines
Quoted 29 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 46
Quoted 3 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0"@@ -46,10 +46,13 @@ do_install(){ sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/"${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 47
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0sed -i -e"s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/" ${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 50
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-2- # Install the init script - # TODO: replace init script with systemd files + # Install the script install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT}${D}${sysconfdir}/init.d/matrix-gui-2.0
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb do_install(){ · line 54
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +4
-0+ + # Install the systemd unit file + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/matrix-gui-2.0.service${D}${systemd_system_unitdir}
Quoted 10 lines
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-1} GUIDEPS = "matrix-gui-browser refresh-screen" --1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 117 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 6:14 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 17 lines · Hongmei
Quoted 17 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 5:37 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 8 lines · Hongmei
Quoted 8 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:54 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd serviceQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines · Hongmei
Quoted 6 lines
Quoted 6 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, November 20, 2018 4:43 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui:replace
Quoted 17 lines
Quoted 17 lines
Quoted 11 lines
Quoted 11 lines
Quoted 6 lines
Quoted 6 lines
SysVinit with systemd service
Quoted 3 lines · Hongmei Gou
Signed-off-by Hongmei Gou <[email protected]>--- .../recipes-core/matrix/matrix-gui/matrix-gui-2.0.service | 10++++++++++
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb | 15+++++++++------
Quoted 2 lines
2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 meta-arago-extras/recipes-core/matrix/matrix-
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
gui/matrix-gui-2.0.service
Review
Quoted 2 lines
(quoted diff) +0
-0gui/matrix-
Quoted 1 line
Quoted 1 line
gui-
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2.0.service b/meta-arago-extras/recipes-core/matrix/matrix-
gui/matrix-
Quoted 6 lines
Quoted 6 lines
gui-
Quoted 5 lines
Quoted 5 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix-
Quoted 4 lines
new file mode 100644
index 0000000..3ce1024meta-arago-extras/recipes-core/matrix/matrix- new file +0
-0gui/matrix-
Quoted 13 lines
Quoted 13 lines
gui-
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 11 lines
2.0.service
meta-arago-extras/recipes-core/matrix/matrix- line 7
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix- new file +7
-0@@ -0,0 +1,10 @@ +[Unit] +Description=Matrix GUI +After=weston.service + +[Service] +Type=forking +ExecStart=/etc/init.d/matrix-gui-2.0 startLooks like it's still calling a legacy initscript - any particular reason?
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Yes, we would like to keep the original scripts, as they are also used
for
Quoted 21 lines
Quoted 21 lines
Quoted 8 lines
Quoted 8 lines
stopping/starting matrix GUI when running GUI based demos (
/usr/share/matrix-gui-2.0/execute_command.sh):Quoted 6 lines
if [ $program_type == gui ]
then
/etc/init.d/matrix-gui-2.0stop
..Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
if [ $program_type == gui ]
then
...
/etc/init.d/matrix-gui-2.0start
fiAny plans to completely moving to systemd and calling systemctl
start/stop?
Quoted 5 lines
With the current patch, "systemctl start/stop matrix-gui-2.0 " can start/stop matrix successfully.
execute_command.shcan be updated to use systemctl start/stop.Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
As for
/etc/init.d/matrix-gui-2.0(attached), I am not seeing anything specific to init.
We can install it to/usr/bininstead of/etc/init.d, and then modify the path in matrix-gui-2.0.service, if this is preferable.If you keep it in
/etc/initd.d, wouldn't systemd try to automaticallyconvert
Quoted 14 lines
Quoted 1 line
it and potentially conflict with your own native unit file?
systemd is not doing the conversion automatically.
Output of "systemctl cat matrix-gui-2.0.service" with the current patch:
[[0;1;34m# /lib/systemd/system/matrix-gui-2.0.service[[0m [Unit]
Description=Matrix GUI
After=weston.service[Service]
Type=forking
ExecStart=/etc/init.d/matrix-gui-2.0 start
Quoted 7 lines
Quoted 5 lines
[Install]
WantedBy=multi-user.targetOutput of "systemctl cat matrix-gui-2.0.service" before the patch:
[[0;1;34m# /run/systemd/generator.late/matrix-gui-2.0.service[[0mDoes this file also exist with the patch?
No, /run/systemd/generator.late/matrix-gui-2.0.service does not exist with the patch.
With the information so far, would the current patch be fine to use?
Quoted 117 lines
Quoted 41 lines
# Automatically generated by systemd-sysv-generator
[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/matrix-gui-2.0
Before=multi-user.target
Before=multi-user.target
Before=multi-user.target
Before=thermal-zone-init.service
After=thttpd.service
After=umountnfs.service
After=rng-tools.service
After=redis-server.service
After=dropbear.service
After=telnetd.service
After=gdbserverproxy.service
After=weston.service
After=rc.pvr.service
After=uim-sysfs.service[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/init.d/matrix-gui-2.0 start
ExecStop=/etc/init.d/matrix-gui-2.0 stopQuoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Review
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix- new file +3
-0+ +[Install] +WantedBy=multi-user.target(quoted diff) +0
-0gui_2.0.bb
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
meta-arago-extras/recipes-core/matrix/matrix-
Quoted 3 lines
index d8aa00b..c79f13e 100644
meta-arago-extras/recipes-core/matrix/matrix- renamed from meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0gui_2.0.bb
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
meta-arago-extras/recipes-core/matrix/matrix- LIC_FILES_CHKSUM =
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix- renamed from meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0@@ -6,14 +6,13 @@ LIC_FILES_CHKSUM ="file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
meta-arago-extras/recipes-core/matrix/matrix- MATRIX_INITSCRIPT =
Quoted 18 lines
meta-arago-extras/recipes-core/matrix/matrix- renamed from meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +3
-4SECTION = "multimedia" -PR = "r35" +PR = "r36" -INITSCRIPT_NAME = "matrix-gui-2.0" -INITSCRIPT_PARAMS = "defaults 97" +SYSTEMD_SERVICE_${PN} = "matrix-gui-2.0.service" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit update-rc.d +inherit systemd BRANCH ?= "master" SRCREV = "9a2d12590102fefc5c29fc9e8d346ce6b0198468"@@ -23,6 +22,7 @@ MATRIX_INITSCRIPT ="${@base_conditional('QT_PROVIDER', 'qt5', bb.utils.contains
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-core/matrix/matrix- MATRIX_INITSCRIPT = · line 22
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix- renamed from meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0SRC_URI = "git://git.ti.com/matrix-gui-v2/matrix-gui-v2.git;protocol=git;branch=${BRANCH} \
meta-arago-extras/recipes-core/matrix/matrix- MATRIX_INITSCRIPT = · line 26
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix- renamed from meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-0file://${MATRIX_INITSCRIPT} \ file://php.ini \ + file://matrix-gui-2.0.service \ ${@base_conditional('QT_PROVIDER', 'qt5',bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'file://0001- execute_command-Stop-matrix-when-running-a-GUI-
demo.patch',
Quoted 6 lines
Quoted 6 lines
d), '',
Quoted 3 lines
Quoted 3 lines
d)}
Quoted 2 lines
Quoted 2 lines
\
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix- renamed from meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0${@bb.utils.contains('DISTRO_FEATURES', 'wayland','file://0001-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
execute_command-workaround-for-GUI-apps-with-
weston.patch', '',
Quoted 8 lines
Quoted 8 lines
d)}
Quoted 7 lines
Quoted 7 lines
\
Quoted 6 lines
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix- do_install(){ · line 46
Quoted 3 lines
meta-arago-extras/recipes-core/matrix/matrix- renamed from meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0"@@ -46,10 +46,13 @@ do_install(){ sed -i -e "s/__MATRIX_FLAGS__/\"${MATRIX_FLAGS}\"/"${WORKDIR}/${MATRIX_INITSCRIPT}
Quoted 1 line
meta-arago-extras/recipes-core/matrix/matrix- renamed from meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-0sed -i -e"s/__SWITCH_FOREGROUND_VT__/${SWITCH_FOREGROUND_VT}/"
Quoted 25 lines
Quoted 24 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
${WORKDIR}/${MATRIX_INITSCRIPT}
meta-arago-extras/recipes-core/matrix/matrix- do_install(){ · line 50
Quoted 6 lines
meta-arago-extras/recipes-core/matrix/matrix- renamed from meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +1
-2- # Install the init script - # TODO: replace init script with systemd files + # Install the script install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/${MATRIX_INITSCRIPT}${D}${sysconfdir}/init.d/matrix-gui-2.0
meta-arago-extras/recipes-core/matrix/matrix- do_install(){ · line 54
Quoted 4 lines
meta-arago-extras/recipes-core/matrix/matrix- renamed from meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +4
-0+ + # Install the systemd unit file + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/matrix-gui-2.0.service${D}${systemd_system_unitdir}
Quoted 10 lines
meta-arago-extras/recipes-core/matrix/matrix- renamed from meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb +0
-1} GUIDEPS = "matrix-gui-browser refresh-screen" --1.9.1
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago