Bug 1231503
| Summary: | lircmd only starts from command line. Will not start from systemd | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mark Mayfield <mayfield_mark> |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 22 | CC: | johannbg, jsynacek, lnykryn, msekleta, ovasik, s, systemd-maint, zbyszek |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-06-17 10:58:17 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Mark Mayfield
2015-06-14 04:03:11 UTC
On a side not. When generating a new bug from scratch. The full component listing did not show up. It was only a very small subset. I had to start the bug under base-system and then edit after creation. The result was the same in both Firefox and Chrome. Works for me. Note that I don't use any lirc configuration, but from systemd's point of view, there's nothing to fix.
# rpm -q systemd lirc
systemd-219-18.fc22.x86_64
lirc-0.9.2a-1.fc22.x86_64
# systemctl enable lircd
Created symlink from /etc/systemd/system/multi-user.target.wants/lircd.service to /usr/lib/systemd/system/lircd.service.
# systemctl reboot
...
# systemctl status lircd
● lircd.service - LIRC Infrared Signal Decoder
Loaded: loaded (/usr/lib/systemd/system/lircd.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2015-06-17 12:43:49 CEST; 3min 23s ago
Main PID: 772 (lircd)
CGroup: /system.slice/lircd.service
└─772 /usr/sbin/lircd --nodaemon
Jun 17 12:43:49 localhost.localdomain systemd[1]: Started LIRC Infrared Signal Decoder.
Jun 17 12:43:49 localhost.localdomain systemd[1]: Starting LIRC Infrared Signal Decoder...
Jun 17 12:43:49 localhost.localdomain lircd[772]: lircd-0.9.2a[772]: Illegal effective uid: lirc: Success
Jun 17 12:43:49 localhost.localdomain lircd-0.9.2a[772]: Illegal effective uid: lirc: Success
Jun 17 12:43:49 localhost.localdomain lircd-0.9.2a[772]: Warning: config file /etc/lirc/lircd.conf contains no valid remote cont...ition
Jun 17 12:43:49 localhost.localdomain lircd-0.9.2a[772]: Notice: lircd(default) ready, using /var/run/lirc/lircd
Jun 17 12:43:49 localhost.localdomain lircd[772]: lircd-0.9.2a[772]: Warning: config file /etc/lirc/lircd.conf contains no vali...nition
Jun 17 12:43:49 localhost.localdomain lircd[772]: lircd-0.9.2a[772]: Notice: lircd(default) ready, using /var/run/lirc/lircd
Aha, I just noticed that it's lircmd.service, not lircd.service. There are actually both on the system. Still, it works. The lircmd.service is socket-activated, therefore it looks as it wasn't enabled after start, but in fact its socket was. # systemctl cat lircmd.service # /usr/lib/systemd/system/lircmd.service [Unit] Description=LIRC Infrared Mouse Event Signal Decoder Wants=lircd.socket [Service] Type=simple ExecStart=/usr/sbin/lircmd --nodaemon [Install] WantedBy=multi-user.target Note the "Wants=lircd.socket". After reboot: # systemctl status lircd.socket ● lircd.socket Loaded: loaded (/usr/lib/systemd/system/lircd.socket; disabled; vendor preset: disabled) Active: active (running) since Wed 2015-06-17 12:54:34 CEST; 10s ago Listen: /run/lirc/lircd (Stream) # systemctl status lircmd.service ● lircmd.service - LIRC Infrared Mouse Event Signal Decoder Loaded: loaded (/usr/lib/systemd/system/lircmd.service; enabled; vendor preset: disabled) Active: inactive (dead) since Wed 2015-06-17 12:54:34 CEST; 17s ago Process: 633 ExecStart=/usr/sbin/lircmd --nodaemon (code=exited, status=0/SUCCESS) Main PID: 633 (code=exited, status=0/SUCCESS) CGroup: /system.slice/lircmd.service If lircd/lircmd still doesn't work for you, please feel free to reopen this bug and reassign to "lirc" component. |