[mythtv-users] lircd setup with hdhomerun kludge

Stephen Worthington stephen_agent at jsw.gen.nz
Wed Aug 22 08:13:45 UTC 2018


On Tue, 21 Aug 2018 22:30:34 -0700, you wrote:

>Thanks for the reply and the help.
>
>The reason I did  /lib/systemd/systemd-sysv-inst*all enable lirc *was
>because when I did  *sudo systemctl disable lirc *
>it was  redirected to  */lib/systemd/systemd-sysv-inst**all disable lirc*
>and I figured if I disabled something the best way to reverse it was to
>enable it.
>
>It is working now so I would ask what query can I make that will show that
>what I did is a problem?  I have become gun shy on making changes now that
>it is working.
>
>Using a slightly different option, *ps aux | grep lirc* I see* l**ircd -H
>udp -d 5000*, which is what I want.
>
>Allen

Yes, systemd runs /lib/systemd/systemd-sysv-install, but it may well
also do other things when you do "systemctl enable lirc", before and
after it runs /lib/systemd/systemd-sysv-install.  Anything under /lib
is not normally something that you run directly.

Since I do not know exactly what you did when you ran "systemctl
disable lirc", it is difficult to know what went wrong.  Running that
command should stop lircd if it is running (although systemd's
problems with sysv init.d may make that problematical), then it should
remove the link that systemd uses to make it automatically start lirc
at boot time.  It should not prevent lircd from running when a
"systemctl start lirc" command is run, or when lircd is run manually.
On my 16.04 system, running "systemctl start lirc" works fine when
lirc is disabled.  So after running "systemctl disable lirc", you
should have been able to comment out or delete the "killall lircd"
line in your rc.local and it should have worked with no other changes.

BTW The right way to do this in systemd is to create a
/etc/systemd/system/lirc.service file and use that to contain your
"lircd -H udp -d 5000" command, with the hdhomerun_config command as
an "ExecStartPre=" line.  But getting that to work would take some
significant effort, and is probably not worth it until 18.04.


More information about the mythtv-users mailing list