FS#32709 - [lirc] lirc.service ignores /etc/conf.d/lircd.conf

Attached to Project: Arch Linux
Opened by Tiago Teixeira (TigTex) - Friday, 16 November 2012, 16:27 GMT
Last edited by Eric Belanger (Snowman) - Friday, 16 November 2012, 16:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Since the migration to systemd, the new lirc.service ignores /etc/conf.d/lircd.conf and that breaks support for devices that require "drivers" or special flags.
Here's the current lirc.service:
____
[Unit]
Description=Linux Infrared Remote Control

[Service]
ExecStartPre=/usr/bin/ln -sf /run/lirc/lircd /dev/lircd
ExecStart=/usr/sbin/lircd --pidfile=/run/lirc/lircd.pid
Type=forking
PIDFile=/run/lirc/lircd.pid

[Install]
WantedBy=multi-user.target
____

As you can see, there are no references to lircd.conf or any file.

Jsravn posted on xbmc archwiki page a new lirc.service that uses lircd.conf and solves this problem.

[Unit]
Description=Linux Infrared Remote Control

[Service]
EnvironmentFile=/etc/conf.d/lircd.conf
ExecStartPre=/usr/bin/ln -sf /run/lirc/lircd /dev/lircd
ExecStart=/usr/sbin/lircd --pidfile=/run/lirc/lircd.pid --device=${LIRC_DEVICE} --driver=${LIRC_DRIVER}
Type=forking
PIDFile=/run/lirc/lircd.pid

[Install]
WantedBy=multi-user.target
________

Currently /etc/conf.d/lircd.conf is useless unless someone is using initscripts.
In order to make my pctv remote controller functional (requires --driver=pinsys and --device=/dev/ttyS0), I had to use the new lirc.service and the "driver" section on /etc/conf.d/lircd.conf.
Also, using the modified lirc.service, the transition from initscripts to systemd is easier because it doesn't require any file modification.

Additional info:
* lirc 1:0.9.0-34
This task depends upon

Closed by  Eric Belanger (Snowman)
Friday, 16 November 2012, 16:50 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#31890 

Loading...