<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processorsのトピックcannot enable systemd service</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/cannot-enable-systemd-service/m-p/1331122#M179244</link>
    <description>&lt;P&gt;I have built Yocto Hardknott imx-5.10.35&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/varigit/variscite-bsp-platform.git" target="_blank" rel="noopener"&gt;https://github.com/varigit/variscite-bsp-platform.git&lt;/A&gt; -b fsl-hardknott -m imx-5.10.35-2.0.0-var01.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;with MACHINE=imx8mp-var-dart DISTRO=fsl-imx-xwayland . var-setup-release.sh -b build_xwayland&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;image fsl-image-qt5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And I can not add service to autostart.&lt;/P&gt;&lt;P&gt;I write simple script&lt;/P&gt;&lt;P&gt;/opt/App/to_log.sh:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#!/bin/bash

echo log $(date) &amp;gt;&amp;gt; /opt/App/log.txt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And App_launcher.service is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;[Unit]
Description=Start App application, restart by request, poweroff from application
#After=graphical.target
#After=weston.service

[Service]
Type=simple
ExecStart=/opt/App/to_log.sh
#ExecStart=/opt/App/App_launcher.sh

[Install]
WantedBy=multi-user.service&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;App_launcher.service in the&amp;nbsp;/lib/systemd/system/ folder&lt;/P&gt;&lt;P&gt;Then I try to enable service:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;~# sudo systemctl daemon-reload
[ 1249.464158] systemd-sysv-generator[1115]: SysV service '/etc/init.d/reboot' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1249.488415] systemd-sysv-generator[1115]: SysV service '/etc/init.d/save-rtc.sh' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
...(and other services)


~# cat /opt/App/log.txt

log Fri Aug 27 18:53:38 MSK 2021

~# sudo systemctl enable App_launcher
[ 1433.903998] systemd-sysv-generator[1142]: SysV service '/etc/init.d/reboot' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1433.928120] systemd-sysv-generator[1142]: SysV service '/etc/init.d/save-rtc.sh' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
...(and other services)

~# sudo systemctl status App_launcher
* App.service - Start App application, restart by request, poweroff from application
     Loaded: loaded (/lib/systemd/system/App.service; enabled; vendor preset: disabled)
     Active: inactive (dead)

Aug 27 18:35:48 imx8mp-var-dart systemd[1]: App.service: Succeeded.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Status is&lt;/P&gt;&lt;P&gt;(... vendor preset: disabled)&lt;BR /&gt;Active: inactive (dead)&lt;/P&gt;&lt;P&gt;And I can not set&amp;nbsp;vendor preset to enabled.&lt;/P&gt;&lt;P&gt;After the reboot application does not starts, log.txt does not change.&lt;/P&gt;&lt;P&gt;How can autostart an application?&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2021 16:04:04 GMT</pubDate>
    <dc:creator>Egor_I_InertgasM</dc:creator>
    <dc:date>2021-08-27T16:04:04Z</dc:date>
    <item>
      <title>cannot enable systemd service</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cannot-enable-systemd-service/m-p/1331122#M179244</link>
      <description>&lt;P&gt;I have built Yocto Hardknott imx-5.10.35&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/varigit/variscite-bsp-platform.git" target="_blank" rel="noopener"&gt;https://github.com/varigit/variscite-bsp-platform.git&lt;/A&gt; -b fsl-hardknott -m imx-5.10.35-2.0.0-var01.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;with MACHINE=imx8mp-var-dart DISTRO=fsl-imx-xwayland . var-setup-release.sh -b build_xwayland&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;image fsl-image-qt5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And I can not add service to autostart.&lt;/P&gt;&lt;P&gt;I write simple script&lt;/P&gt;&lt;P&gt;/opt/App/to_log.sh:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#!/bin/bash

echo log $(date) &amp;gt;&amp;gt; /opt/App/log.txt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And App_launcher.service is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;[Unit]
Description=Start App application, restart by request, poweroff from application
#After=graphical.target
#After=weston.service

[Service]
Type=simple
ExecStart=/opt/App/to_log.sh
#ExecStart=/opt/App/App_launcher.sh

[Install]
WantedBy=multi-user.service&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;App_launcher.service in the&amp;nbsp;/lib/systemd/system/ folder&lt;/P&gt;&lt;P&gt;Then I try to enable service:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;~# sudo systemctl daemon-reload
[ 1249.464158] systemd-sysv-generator[1115]: SysV service '/etc/init.d/reboot' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1249.488415] systemd-sysv-generator[1115]: SysV service '/etc/init.d/save-rtc.sh' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
...(and other services)


~# cat /opt/App/log.txt

log Fri Aug 27 18:53:38 MSK 2021

~# sudo systemctl enable App_launcher
[ 1433.903998] systemd-sysv-generator[1142]: SysV service '/etc/init.d/reboot' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
[ 1433.928120] systemd-sysv-generator[1142]: SysV service '/etc/init.d/save-rtc.sh' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
...(and other services)

~# sudo systemctl status App_launcher
* App.service - Start App application, restart by request, poweroff from application
     Loaded: loaded (/lib/systemd/system/App.service; enabled; vendor preset: disabled)
     Active: inactive (dead)

Aug 27 18:35:48 imx8mp-var-dart systemd[1]: App.service: Succeeded.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Status is&lt;/P&gt;&lt;P&gt;(... vendor preset: disabled)&lt;BR /&gt;Active: inactive (dead)&lt;/P&gt;&lt;P&gt;And I can not set&amp;nbsp;vendor preset to enabled.&lt;/P&gt;&lt;P&gt;After the reboot application does not starts, log.txt does not change.&lt;/P&gt;&lt;P&gt;How can autostart an application?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 16:04:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cannot-enable-systemd-service/m-p/1331122#M179244</guid>
      <dc:creator>Egor_I_InertgasM</dc:creator>
      <dc:date>2021-08-27T16:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: cannot enable systemd service</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cannot-enable-systemd-service/m-p/1709620#M211269</link>
      <description>&lt;P&gt;Any updates on this issue? I am facing a similar issue.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 06:44:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cannot-enable-systemd-service/m-p/1709620#M211269</guid>
      <dc:creator>meetalipatel</dc:creator>
      <dc:date>2023-08-23T06:44:08Z</dc:date>
    </item>
  </channel>
</rss>

