systemd startup

Mary Strimel <[email protected]> Tue, 6 Jul 2021 13:28:12 -0400
Newsgroups gmane.comp.hardware.lirc
Message-ID <CAGm2JDecP1jv=DFiS85XiRbzHReHnsadMTLGdXWh22C_4jXzDw@mail.gmail.com>
--===============1357187581410381354==
Content-Type: multipart/alternative; boundary="000000000000b37d7e05c677bf3a"

--000000000000b37d7e05c677bf3a
Content-Type: text/plain; charset="UTF-8"

Hello,
I now have my USB-UIRT configured so that it transmits IR pulses. Yay!!!
Very exciting.

The remaining glitch is that I have to start lircd manually to get it to
work. If I run "sudo lircd" it works fine, but if I do "systemctl start
lircd" then it does not work and I see the following error in the log:

"can't open or create /var/run/lirc/lircd.pid: Permission denied"
and lircd fails to start

The systemd service file for lircd shows the user as lirc and the group as
lirc.  I tried changing the user in that file to "root" [I don't really
know what I'm doing] but it didn't help. In fact, that caused SELinux to
throw an error so it seemed to make things worse. I ran the commands
suggested by the SELinux troubleshooter, several times, but the error
persists.

How can i give lirc the appropriate access to /var/run/lirc/lircd.pid on a
persistent basis (assuming that is the issue here)?
Thanks in advance,
Mary

--000000000000b37d7e05c677bf3a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div>I now have my USB-UIRT configured so that it tr=
ansmits IR pulses. Yay!!!=C2=A0 Very exciting.</div><div><br></div><div>The=
 remaining glitch is that I have to start lircd=C2=A0manually to get it to =
work. If I run &quot;sudo lircd&quot; it works fine, but if I do &quot;syst=
emctl start lircd&quot; then it does not work and I see the following error=
 in the log:</div><div><br></div><div>&quot;can&#39;t open or create /var/r=
un/lirc/lircd.pid: Permission denied&quot;</div><div>and lircd fails to sta=
rt</div><div><br></div><div>The systemd service file for lircd shows the us=
er as lirc and the group as lirc.=C2=A0 I tried changing the user in that f=
ile to &quot;root&quot; [I don&#39;t really know what I&#39;m doing] but it=
 didn&#39;t help. In fact, that caused SELinux to throw an error so it seem=
ed to make things worse. I ran the commands suggested by the SELinux troubl=
eshooter, several times, but the error persists.</div><div><br></div><div>H=
ow can i give lirc the appropriate access to /var/run/lirc/lircd.pid on a p=
ersistent basis (assuming that is the issue here)?</div><div>Thanks in adva=
nce,</div><div>Mary=C2=A0</div></div>

--000000000000b37d7e05c677bf3a--


--===============1357187581410381354==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============1357187581410381354==--