From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A33EC433F5 for ; Tue, 11 Oct 2022 19:55:03 +0000 (UTC) Received: from dmzms99801.na.baesystems.com (dmzms99801.na.baesystems.com [149.32.232.65]) by mx.groups.io with SMTP id smtpd.web08.11940.1665518095978454721 for ; Tue, 11 Oct 2022 12:54:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@baesystems.com header.s=trusted01 header.b=PFa24c0H; spf=pass (domain: baesystems.com, ip: 149.32.232.65, mailfrom: steven.monsees@baesystems.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=baesystems.com; i=@baesystems.com; q=dns/txt; s=trusted01; t=1665518096; x=1823198096; h=from:to:subject:date:mime-version; bh=5ZZR7UiDDguDvXSIhGAjG/yu0YMQCOa/d2veoXueQMo=; b=PFa24c0HgbklLjiUS499mEl5Up3DNQUkIiBLCNxjlh8cRXR8DSLuFCFR F7RhAj/eP4XIBVoG4xJFXpmJVI3UAH3KiarsZqBwmpRmc8CAj4mK+a/3g +LCuvIXb3ozR+JvTfYb7ClcO+QE/d8R/TPta6W2JVmQkcJdrNxlcRepnR U=; X-IPAS-Result: =?us-ascii?q?A2AmAAAuyUVj/0LBJQpaHAEBAQEBAQcBARIBAQQEAQFAC?= =?us-ascii?q?YEyBwEBCwGBIYICAoFvjFaICZ4HgXwLAQEBAQEBAQEBCAFCBAEBiXwmNAkOA?= =?us-ascii?q?QIEAQEBAQMCAwEBAQEBAQMBAQYBAQEBAQEGBAGBG4UvOgyCNSKEH14BFWsmA?= =?us-ascii?q?QQbgnaCFoEKrHWBNBoCZYRwiXEJAYEzAYFlhSNuWIMkEoY4Q4QIi3YEmmMHN?= =?us-ascii?q?wNEH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gKMq 0cv+5nilo/R109F5tpICd8XeGVSKlLZFVDmZna7x8FOjzAazhHe3JrXO9IcbE1qlSmvx+t82 dV2rZWqZDYjML/DzbF1vxlwS0mSPIVA+LnOJGPv7JTLlgvAej3myvh1HVoqMIgDvO1wBAmi9 9RBcHZWMVba1rnwnuzTpupE36zPKOHwII4Bt3cmyDbfFvsrWrjJSqjR9MRE0TIrwMtJGJ4yY uJDN2A+N0WbOXWjPH8sUo8ivf2W2kD1MAVG7wnPgrNw+EPcmVkZPL/FdYC9lsaxbdRSlVqfj mbH5HjiRAAdP8CY0SCC8H+nmqnIhyyTZW4JPOTgsKU1xgTCnSpNVnX6SGeGnBVwsWbmM/o3F qDe0nFGQXQanKBzcuTAYg== IronPort-HdrOrdr: A9a23:VSy59KpFF6nblNVavwieIHcaV5oyeYIsimQD101hICG9E/b5qy nApp8mPHPP4gr5O0tApTnjAsa9qBrnnPZICO8qUItKNzOJhILHFu1fBPDZsl7dJxE= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="5.95,177,1661817600"; d="scan'208,217";a="26293932" X-IronPort-AV: E=Sophos;i="5.95,177,1661817600"; d="scan'208,217";a="349666008" From: "Monsees, Steven C (US)" To: "yocto@lists.yoctoproject.org" Subject: # honister #systemd attempting to run script on boot... Thread-Topic: # honister #systemd attempting to run script on boot... Thread-Index: Adjdq1Pzqv3zTEE0RDOnsHhi9wT6Qg== Date: Tue, 11 Oct 2022 19:54:53 +0000 Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.44.4.39] Content-Type: multipart/alternative; boundary="_000_eb01ecb1fcea49818de1b740f8493f45baesystemscom_" MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 11 Oct 2022 19:55:03 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/58324 Message-Id: <20221011195503.3A33EC433F5@smtp.lore.kernel.org> --_000_eb01ecb1fcea49818de1b740f8493f45baesystemscom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am trying to make use of system to run a test script at boot... I can exercise my test_script/test_script.service manually using systemctl = commands and it appears to work as expects. I created a recipe based on this, it builds clean (no errors/warnings), but= it doesn't appear to set things up correctly. I have only recently begun working with honister, and new to systemd... Could someone have look at my recipe & service file and see if they can spo= t anything ? My recipe: # # This file is the my_test_script recipe. # SUMMARY =3D "Simple my_test_script application" SECTION =3D "apps" LICENSE =3D "MIT" LIC_FILES_CHKSUM =3D "file://${COMMON_LICENSE_DIR}/MIT;md5=3D0835ade698e0bc= f8506ecda2f7b4f302" inherit systemd SRC_URI =3D "file://test_script.sh \ file://test_script.service" S =3D "${WORKDIR}" SYSTEMD_PACKAGES =3D "${PN}" SYSTEMD_SERVICE_${PN} =3D "test_script.service" SYSTEMD_AUTO_ENABLE:${PN} =3D "enable" do_install() { install -d ${D}${bindir} install -m 0755 ${S}/test_script.sh ${D}${bindir} install -d ${D}${systemd_system_unitdir} install -m 0644 ${S}/test_script.service ${D}${systemd_system_= unitdir} } FILES_${PN} =3D "${bindir}" FILES_${PN} +=3D "${systemd_system_unitdir}" REQUIRED_DISTRO_FEATURES=3D"systemd" --- My test script service file: [Unit] Description=3DConfigure test [Service] Type=3Doneshot ExecStart=3D/usr/bin/test_script.sh start StandardOutput=3Djournal+console [Install] WantedBy=3Dmulti-user.target --- My test script: #!/bin/bash # description: Description comes here.... echo "*******************************" echo "START: Hello PetaLinux World :)" date +"%m/%d/%Y %H:%M:%S $HOSTNAME" echo "*******************************" Thanks, Steve --_000_eb01ecb1fcea49818de1b740f8493f45baesystemscom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

I am trying to make use of system to run a test scri= pt at boot…

I can exercise my test_script/test_script.service ma= nually using systemctl commands and it appears to work as expects.

 

I created a recipe based on this, it builds clean (n= o errors/warnings), but it doesn’t appear to set things up correctly.=

I have only recently begun working with honister, an= d new to systemd…

 

Could someone have look at my recipe & service f= ile and see if they can spot anything ?

 

My recipe:

 

#

# This file is the my_test_script recipe.=

#

 

SUMMARY =3D "Simple my_test_script application&= quot;

SECTION =3D "apps"

LICENSE =3D "MIT"

LIC_FILES_CHKSUM =3D "file://${COMMON_LICENSE_D= IR}/MIT;md5=3D0835ade698e0bcf8506ecda2f7b4f302"

 

inherit systemd

 

SRC_URI =3D "file://test_script.sh \=

        &nbs= p;  file://test_script.service"

 

S =3D "${WORKDIR}"

 

SYSTEMD_PACKAGES =3D "${PN}"

SYSTEMD_SERVICE_${PN} =3D "test_script.service&= quot;

SYSTEMD_AUTO_ENABLE:${PN} =3D "enable"

 

do_install() {

        &nbs= p;    install -d ${D}${bindir}

        &nbs= p;    install -m 0755 ${S}/test_script.sh ${D}${bindir}=

 

        &nbs= p;    install -d ${D}${systemd_system_unitdir}

        &nbs= p;    install -m 0644 ${S}/test_script.service ${D}${systemd= _system_unitdir}

}

 

FILES_${PN} =3D "${bindir}"

FILES_${PN} +=3D "${systemd_system_unitdir}= "

 

REQUIRED_DISTRO_FEATURES=3D"systemd"<= /o:p>

---

My test script service file:

 

[Unit]

Description=3DConfigure test

 

[Service]

Type=3Doneshot

ExecStart=3D/usr/bin/test_script.sh start=

StandardOutput=3Djournal+console

 

[Install]

WantedBy=3Dmulti-user.target

---

My test script:

 

#!/bin/bash

# description: Description comes here....=

 

echo "*******************************"

echo "START: Hello PetaLinux World :)"

date +"%m/%d/%Y %H:%M:%S $HOSTNAME"

echo "*******************************"

 

Thanks,

Steve

--_000_eb01ecb1fcea49818de1b740f8493f45baesystemscom_--