lircd.service: add sh wrapper, bump spec.

epel8
Alec Leamas 11 years ago
parent eeaef3997e
commit bc430f8092

@ -22,9 +22,9 @@
Name: lirc
Version: 0.9.0
%if 0%{?released}
Release: 20%{?dist}
Release: 21%{?dist}
%else
Release: 0.4.%{pre}%{?dist}
Release: 0.5.%{pre}%{?dist}
%endif
Summary: The Linux Infrared Remote Control package
@ -337,6 +337,9 @@ find /etc/systemd -name lirc.service -xtype l -delete || :
%changelog
* Sun Nov 17 2013 leamas.alec@gmail.com - 0.9.0-21
- lircd.service: add sh wrapper to handle empty argumentes.
* Sun Nov 17 2013 leamas.alec@gmail.com - 0.9.0-20
- Fixing typo in -20.
- Ignore errors in PreExec/PostExec.

@ -7,8 +7,8 @@ Type=simple
EnvironmentFile=-/etc/sysconfig/lirc
ExecStartPre=-/bin/sh -c 'test -n "${LIRCD_IR_DEVICE}" && \
echo lirc > /sys/class/rc/${LIRCD_IR_DEVICE}/protocols || :'
ExecStart=/usr/sbin/lircd ${LIRCD_OPTIONS} \
--driver ${LIRC_DRIVER} --device ${LIRC_DEVICE} --nodaemon
ExecStart=/bin/sh -c '/usr/sbin/lircd ${LIRCD_OPTIONS} \
--driver ${LIRC_DRIVER} --device ${LIRC_DEVICE} --nodaemon'
ExecStopPost=-/bin/sh -c 'test -n "${LIRCD_IR_DEVICE}" && \
echo -lirc > /sys/class/rc/${LIRCD_IR_DEVICE}/protocols || :'

Loading…
Cancel
Save