<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">So, seems to work. I attached my
      current scripts and two picutes with error messages.<br>
      Also I added now <b>read -t 30</b> and fixed hanging by pressing
      the Enter-key. Is there any way<br>
      to hide those error messages (seems the system still tries to read
      from CD after it got ejected),<br>
      so my message gets displayed clean? Maybe there is a way to get it
      cleaner.<br>
      <br>
      Mixed feelings about this one ...<br>
      <br>
      Phil<br>
      <br>
      Am 13.09.2012 20:01, schrieb Philip Müller:<br>
    </div>
    <blockquote cite="mid:50521F63.8070406@manjaro.org" type="cite">Sorry,
      that was my fault. As suggested it works.
      <br>
      Thx again for your help.
      <br>
      <br>
      Phil
      <br>
      <br>
      Am 13.09.2012 18:19, schrieb Lennart Poettering:
      <br>
      <blockquote type="cite">On Thu, 13.09.12 18:04, Philip Müller
        (<a class="moz-txt-link-abbreviated" href="mailto:philm@manjaro.org">philm@manjaro.org</a>) wrote:
        <br>
        <br>
        [...]
        <br>
        <br>
        <blockquote type="cite">All operations are timed out in systemd
          by default. You can turn this
          <br>
          off by pasing TimeoutSec=0.
          <br>
          <br>
          However, I'd probably recommend you to define your service a
          bit
          <br>
          differently. Add this to [Unit]:
          <br>
          <br>
                   DefaultDependencies=no
          <br>
                   After=shutdown.target
          <br>
                   Before=final.target
          <br>
          <br>
          And just use ExecStart= to spawn your code, drop the
          ExecStop=.
          <br>
          <br>
          And then pull that in from final.target.
          <br>
          <br>
          In case you wonder: the charts at the end of this man page
          might
          <br>
          explain better where a service like that is positioned:
          <br>
          <br>
          <a class="moz-txt-link-freetext" href="http://www.freedesktop.org/software/systemd/man/bootup.html">http://www.freedesktop.org/software/systemd/man/bootup.html</a>
          <br>
        </blockquote>
        [...]
        <br>
        <br>
        <blockquote type="cite">[Unit]
          <br>
          Description=LiveMedia Eject Service
          <br>
          Before=unmount.target
          <br>
          After=shutdown.target
          <br>
          DefaultDependencies=no
          <br>
          <br>
          [Service]
          <br>
          Type=oneshot
          <br>
          ExecStart=/etc/manjaro/ejectcd
          <br>
          StandardInput=tty-force
          <br>
          RemainAfterExit=yes
          <br>
          <br>
          [Install]
          <br>
          WantedBy=shutdown.target
          <br>
        </blockquote>
        Use "Before=final.target" as I suggested, not
        "Before=unmount.target"
        <br>
        (there is no unmount.target anyway, only umount.target).
        <br>
        <br>
        Lennart
        <br>
        <br>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
systemd-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>