<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Dear All,</p>
    <p>this is my 1st post here, please be patient....</p>
    <p>I'm lost in uname -a<br>
      Linux orangepizero 4.19.62-sunxi #5.92 SMP Wed Jul 31 22:07:23
      CEST 2019 armv7l GNU/Linux<br>
    </p>
    <p>regarding systemd dependencies.</p>
    <p>I need efis.service starting <i>after</i> gpsd.service</p>
    <p>I put every possible dependency into the UNIT file, but
      efis.service stats always before. gpsd.service establishs a socket
      and a dbus shared memory section and depending on a race condition
      efis.service fails to start, due to a segementation violation,
      because gpsd has not yet established the SHM.</p>
    <p>systemctl --full status efis.service<br>
      ● efis.service<br>
         Loaded: loaded (/lib/systemd/system/efis.service; enabled;
      vendor preset: enabled)<br>
         Active: active (running) since Thu 2021-02-18 19:32:16 CET;
      32min ago<br>
       Main PID: <b>789</b> (OrPi_EFIS.out)<br>
          Tasks: 5 (limit: 4915)<br>
         CGroup: /system.slice/efis.service<br>
                 └─789 /usr/bin/OrPi_EFIS.out<br>
      <br>
      Feb 18 19:32:16 orangepizero systemd[1]: Started efis.service.<br>
      root@orangepizero:/home/hk# systemctl --full status gpsd.service<br>
      ● gpsd.service - GPS (Global Positioning System) Daemon<br>
         Loaded: loaded (/lib/systemd/system/gpsd.service; enabled;
      vendor preset: enabled)<br>
         Active: active (running) since Thu 2021-02-18 19:32:16 CET;
      33min ago<br>
        Process: <b>810</b> ExecStart=/usr/local/sbin/gpsd
      $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)<br>
       Main PID: <b>822</b> (gpsd)<br>
          Tasks: 2 (limit: 4915)<br>
         CGroup: /system.slice/gpsd.service<br>
                 └─822 /usr/local/sbin/gpsd -n /dev/ttyUSB0</p>
    <p>and here's the UNIT file</p>
    <p>cat /lib/systemd/system/efis.service<br>
      [UNIT]<br>
      Description=EFIS systemd service<br>
      DefaultDependencies=true<br>
      [Service]<br>
      Type=simple<br>
      BindsTo=dbus.service<br>
      BindsTo=gpsd.socket<br>
      After=dbus.service gpsd.service<br>
      ExecStart=/usr/bin/OrPi_EFIS.out<br>
      [Install]<br>
      WantedBy=multi-user.target<br>
      Also=gpsd.service<br>
    </p>
    <p>Can you help, before I go crazy??</p>
    <p>Thank-you!</p>
    <p>hk</p>
    <p><br>
    </p>
  </body>
</html>