Bug 1294744 - /usr/lib/systemd/system/lircd.service is overwritten on upgrade.
Summary: /usr/lib/systemd/system/lircd.service is overwritten on upgrade.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: lirc
Version: 23
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Alec Leamas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-30 05:10 UTC by grant petersen
Modified: 2015-12-30 10:42 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-12-30 10:10:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description grant petersen 2015-12-30 05:10:44 UTC
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)

How reproducible:
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
3. Reboot.

Actual results:
irexec fails to run. (as it can't talk to lircd)


Expected results:
irexec should run and process appropriate scripts.


Additional info:
My lircd.service file's contents:

[Unit]
Description=LIRC Infrared Signal Decoder
After=network.target

[Service]
Type=simple
ExecStart=/usr/sbin/lircd --nodaemon -H devinput -d /dev/input/by-path/pci-0000:03:00.0-event-ir

[Install]
WantedBy=multi-user.target

Comment 1 Alec Leamas 2015-12-30 10:10:20 UTC
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

Comment 2 Alec Leamas 2015-12-30 10:42:36 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.