<?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>topic Enable systemd-time-wait-sync.service in rootfs image in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Enable-systemd-time-wait-sync-service-in-rootfs-image/m-p/1343485#M180419</link>
    <description>&lt;P&gt;I have a service that requires time being set. &amp;nbsp;By googling around I found that the&amp;nbsp;"systemd-time-wait-sync.service" is responsible for letting the system know when time is set. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a systemd service with the following unit requirements:&lt;/P&gt;&lt;PRE&gt;[Unit]&lt;BR /&gt;Description=My Service&lt;BR /&gt;After=network-online.target&lt;BR /&gt;After=time-sync.target &lt;BR /&gt;Wants=time-sync.target&lt;/PRE&gt;&lt;P&gt;I see that the systemd-time-wait-sync service is installed but its not enabled. &amp;nbsp;If I don't have&amp;nbsp;systemd-time-wait-sync.service enabled, my service runs even if time is not set (and for that matter network isn't online). &amp;nbsp;However, if I manually enable the systemd-time-wait-sync.service, my service works and will not run until time is actually set, after we get the network online.&lt;/P&gt;&lt;P&gt;How do I make the systemd-time-wait-sync.service enabled at install time? (e.g. automatically create the symbolic link to the&amp;nbsp;/etc/systemd/system/sysinit.target.wants?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 22:07:48 GMT</pubDate>
    <dc:creator>dvlogic</dc:creator>
    <dc:date>2021-09-21T22:07:48Z</dc:date>
    <item>
      <title>Enable systemd-time-wait-sync.service in rootfs image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-systemd-time-wait-sync-service-in-rootfs-image/m-p/1343485#M180419</link>
      <description>&lt;P&gt;I have a service that requires time being set. &amp;nbsp;By googling around I found that the&amp;nbsp;"systemd-time-wait-sync.service" is responsible for letting the system know when time is set. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a systemd service with the following unit requirements:&lt;/P&gt;&lt;PRE&gt;[Unit]&lt;BR /&gt;Description=My Service&lt;BR /&gt;After=network-online.target&lt;BR /&gt;After=time-sync.target &lt;BR /&gt;Wants=time-sync.target&lt;/PRE&gt;&lt;P&gt;I see that the systemd-time-wait-sync service is installed but its not enabled. &amp;nbsp;If I don't have&amp;nbsp;systemd-time-wait-sync.service enabled, my service runs even if time is not set (and for that matter network isn't online). &amp;nbsp;However, if I manually enable the systemd-time-wait-sync.service, my service works and will not run until time is actually set, after we get the network online.&lt;/P&gt;&lt;P&gt;How do I make the systemd-time-wait-sync.service enabled at install time? (e.g. automatically create the symbolic link to the&amp;nbsp;/etc/systemd/system/sysinit.target.wants?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 22:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-systemd-time-wait-sync-service-in-rootfs-image/m-p/1343485#M180419</guid>
      <dc:creator>dvlogic</dc:creator>
      <dc:date>2021-09-21T22:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enable systemd-time-wait-sync.service in rootfs image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-systemd-time-wait-sync-service-in-rootfs-image/m-p/1343504#M180421</link>
      <description>&lt;P&gt;Never mind, I figured it out. &amp;nbsp;I had to add a "Wants=systemd-time-wait-sync.service" to my service Unit settings. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 23:59:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-systemd-time-wait-sync-service-in-rootfs-image/m-p/1343504#M180421</guid>
      <dc:creator>dvlogic</dc:creator>
      <dc:date>2021-09-21T23:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Enable systemd-time-wait-sync.service in rootfs image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-systemd-time-wait-sync-service-in-rootfs-image/m-p/1347237#M180712</link>
      <description>&lt;P&gt;Thanx for letting us know. I'm closing the case.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 05:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-systemd-time-wait-sync-service-in-rootfs-image/m-p/1347237#M180712</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2021-09-28T05:07:50Z</dc:date>
    </item>
  </channel>
</rss>

