<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks for all input!<br>
    <br>
    Anthony Messina<br>
    <blockquote type="cite">
      <pre wrap="">On Monday, October 14, 2013 02:32:23 PM Colin Guthrie wrote:
</pre>
      <blockquote type="cite" style="color: #000000;">
        <pre wrap="">2. Setting the protocols properly e.g. currently you have
ExecStartPre=/bin/sh -c 'echo lirc > /sys/class/rc/rc0/protocols' in the
<a class="moz-txt-link-freetext" href="https://github.com/leamas/lirc-pkg/blob/master/lircd.service">https://github.com/leamas/lirc-pkg/blob/master/lircd.service</a>, but this
basically assumes $LIRC_DEVICE=/dev/lirc0 I believe (rc0 in the fixed
string). It should also reset it after finishing too such that some
other use of it can be made.
</pre>
      </blockquote>
      <pre wrap="">Perhaps with handily crafted udev rules.  Currently, I am using this hammer
in /usr/lib/udev/rules.d/99-remote-control-lirc.rules.  But that's only 
because I don't want other protocols to interfere with MythTV <span class="moz-smiley-s3" title=";)"></span>

# Disable all but the "lirc" protocol for infrared devices
SUBSYSTEM=="rc", ATTR{protocols}="lirc</pre>
    </blockquote>
    This is clear as mud to me,  will try to look into it.<br>
    <br>
    <blockquote type="cite">
      <div class="moz-text-plain" wrap="true" graphical-quote="true"
        style="font-family: -moz-fixed; font-size: 12px;"
        lang="x-western"><br>
        <pre wrap="">Add 'Also=lircd.service' to [Install] in socket file, so that
'systemctl enable lircd' will enable the socket too.</pre>
      </div>
    </blockquote>
    Done.<br>
    <blockquote type="cite">
      <div class="moz-text-plain" wrap="true" graphical-quote="true"
        style="font-family: -moz-fixed; font-size: 12px;"
        lang="x-western">
        <pre wrap="">/etc/sysconfig is considered deprecated. You use LIRCMD_OPTIONS
as an additional switch to enable/disable lircmd, which duplicates
systemctl enable/disable...</pre>
      </div>
    </blockquote>
    Oops. This was basically a stupid default and an even more stupid<br>
    comment. Fixed<br>
    <blockquote type="cite">
      <div class="moz-text-plain" wrap="true" graphical-quote="true"
        style="font-family: -moz-fixed; font-size: 12px;"
        lang="x-western">
        <pre wrap="">[cut]
+#ifdef HAVE_SYSTEMD
+        n = sd_listen_fds(0);
+        if (n > 1) {
+                fprintf(stderr, "Too many file descriptors received.\n");
                goto start_server_failed0;
-       }
+                exit(1);
</pre>
        <pre wrap="">Isn't this exit(1) dead code?

</pre>
      </div>
    </blockquote>
    Indeed, fixed.<br>
    <br>
    Colin Guthrie:<br>
    <blockquote type="cite">
      <pre wrap="">Hi Alec
</pre>
      <pre wrap="">Something else which might be nice is the following:

1. Change lirc.service to be templated i.e. allow multiple lircd's to be
run if you have multiple lirc devices plugged in to one machine.</pre>
    </blockquote>
    I tend to think that this might make things more complex for a
    rather limited usecase. For now,  I have simply documented how to
    create a new service in README.fedora. That is not to say this
    can't  be implemented in a later release. <br>
    <br>
    Thanks again for all input!<br>
    <br>
    --alec<br>
    <br>
  </body>
</html>