Red Hat Bugzilla – Bug 1294744
/usr/lib/systemd/system/lircd.service is overwritten on upgrade.
Last modified: 2015-12-30 05:42:36 EST
Description of problem:
/usr/lib/systemd/system/lircd.service is overwritten on lircd-core upgrade. This causes lircd to stop working if a default lircd.service file is not appropriate for the particular system it's running on.
Version-Release number of selected component (if applicable):
lircd 0.9.3a (but the last umpty ump have all done this too)
Every time lircd-core is upgraded with dnf.
Steps to Reproduce:
1. Edit /usr/lib/systemd/system/lircd.service to make lircd work.
2. Upgrade lirc-core
irexec fails to run. (as it can't talk to lircd)
irexec should run and process appropriate scripts.
My lircd.service file's contents:
Description=LIRC Infrared Signal Decoder
ExecStart=/usr/sbin/lircd --nodaemon -H devinput -d /dev/input/by-path/pci-0000:03:00.0-event-ir
This is the intended behaviour. Users who need a custom lircd.service should not edit /lib/systemd/system/lircd.service - instead a new file /etc/systemd/system/lircd.service file should be created which overrides the /lib/systemd one. Please refer to the systemd docs e. g. http://www.freedesktop.org/software/systemd/man/systemd.unit.html
BTW, there is no need for you to modify lircd.service. If you use the shipped variant, you can specify things like driver and device in the /etc/lirc/lirc_options.conf file. This is the intended configuration mechanism.