From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by arago-project.org (Postfix) with ESMTPS id 302DD529AC for ; Tue, 20 Nov 2018 21:54:18 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wAKLs79G037254 for ; Tue, 20 Nov 2018 15:54:07 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1542750847; bh=Fp0eaNzU1EG4sn622j/hD/zhoQzVn1cnLmLpSoUbSr8=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=gIvBY4S6ks13vzIZ3iVOln3gc/eIbGBc+6vrKFK5in5gKJCU3ABhv/OvRagoqlmpu SywKXNIvsFVM1gJ5w26Ju+auuq/Rd8XccGdiY4CSvdGY3UrJFaqkbDuLRMXt+ZLPGp 5R5m25Bt0to6Oa6Rs2iZFEvcC/X0tnApBMi2qqHg= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wAKLs7Rs026016 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 20 Nov 2018 15:54:07 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 20 Nov 2018 15:54:06 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 20 Nov 2018 15:54:06 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wAKLs6Gn023549; Tue, 20 Nov 2018 15:54:06 -0600 Date: Tue, 20 Nov 2018 16:54:06 -0500 From: Denys Dmytriyenko To: "Gou, Hongmei" Message-ID: <20181120215406.GE2540@beryl> References: <1542749635-31317-1-git-send-email-a0271529@ti.com> <20181120214244.GD2540@beryl> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: "meta-arago@arago-project.org" Subject: Re: [rocko/master] [PATCH] matrix-gui: replace SysVinit with systemd service X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Nov 2018 21:54:18 -0000 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline On Tue, Nov 20, 2018 at 04:51:51PM -0500, Gou, Hongmei wrote: > > -----Original Message----- > > From: Dmytriyenko, Denys > > Sent: Tuesday, November 20, 2018 4:43 PM > > To: Gou, Hongmei > > Cc: meta-arago@arago-project.org > > Subject: Re: [meta-arago] [rocko/master] [PATCH] matrix-gui: replace > > SysVinit with systemd service > > > > On Tue, Nov 20, 2018 at 04:33:55PM -0500, Hongmei Gou wrote: > > > Signed-off-by: Hongmei Gou > > > --- > > > .../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 > > > > > > diff --git a/meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- > > 2.0.service b/meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- > > 2.0.service > > > new file mode 100644 > > > index 0000000..3ce1024 > > > --- /dev/null > > > +++ b/meta-arago-extras/recipes-core/matrix/matrix-gui/matrix-gui- > > 2.0.service > > > @@ -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? > > 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 Any plans to completely moving to systemd and calling systemctl start/stop? > > > + > > > +[Install] > > > +WantedBy=multi-user.target > > > diff --git a/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb > > b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb > > > index d8aa00b..c79f13e 100644 > > > --- a/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb > > > +++ b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb > > > @@ -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" > > > -- > > > 1.9.1 > > > > > > _______________________________________________ > > > meta-arago mailing list > > > meta-arago@arago-project.org > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago