<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 08/16/2013 10:47 PM, Khem Raj wrote:<br>
    </div>
    <blockquote
cite="mid:CAMKF1srCL2f+Cxb+2xvLY4_+oikJgXtj0vcR3=9h0tbDf1jGSg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_default" style="font-family:courier
          new,monospace;font-size:small"><br>
        </div>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Fri, Aug 16, 2013 at 10:27 AM,
            Shakeel, Muhammad <span dir="ltr">&lt;<a
                moz-do-not-send="true"
                href="mailto:muhammad_shakeel@mentor.com"
                target="_blank">muhammad_shakeel@mentor.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">From:
              Muhammad Shakeel &lt;<a moz-do-not-send="true"
                href="mailto:muhammad_shakeel@mentor.com">muhammad_shakeel@mentor.com</a>&gt;<br>
              <br>
              -Remove dependency on meta-systemd<br>
              <br>
              +[Service]<br>
              +ExecStart=-/usr/sbin/sshd -i</blockquote>
            <br>
            <div><br>
            </div>
            <div style="font-family:'courier
              new',monospace;font-size:small" class="gmail_default">it
              would be nice if it was using libdir/bindir instead of
              hardcoded paths</div>
            <div style="font-family:'courier
              new',monospace;font-size:small" class="gmail_default">coudld
              be achieved by generating the unit files from some sort of
              .in files at build time so it could benefit</div>
            <div style="font-family:'courier
              new',monospace;font-size:small" class="gmail_default">
              the distros which dont use /usr e.g.</div>
            <div style="font-family:'courier
              new',monospace;font-size:small" class="gmail_default">
              ​​</div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              +       sed -i 's,/bin/,${base_bindir}/,g'
              ${D}${systemd_unitdir}/system/sshd.socket
              ${D}${<a class="moz-txt-link-abbreviated" href="mailto:systemd_unitdir}/system/sshd@.service">systemd_unitdir}/system/sshd@.service</a><br>
              +       sed -i 's,/usr/sbin/,${sbindir}/,g'
              ${D}${<a class="moz-txt-link-abbreviated" href="mailto:systemd_unitdir}/system/sshd@.service">systemd_unitdir}/system/sshd@.service</a><br>
              +       sed -i 's,/usr/bin/,${bindir}/,g'
              ${D}${systemd_unitdir}/system/sshdgenkeys.service<br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    /usr/sbin/ is being sed'ed with ${sbindir} in do_install_append of
    the respective recipe file. /usr/bin/ and /bin/ is also taken care
    of.<br>
    <br>
    Regards<br>
  </body>
</html>