You are not logged in.

#1 2013-05-17 01:25:24

wilberfan
Member
From: So. Cal
Registered: 2010-12-18
Posts: 264

[SOLVED] lircd fails since 1:0.9.0-43

I've had to put lirc (and lirc-utils) on hold, because they fail to start via systemctl at boot.  Version 1:0.9.0-41 works for me, but -43 and just today -45 fail.

$ systemctl status lircd
lircd.service - LIRC Daemon
   Loaded: loaded (/usr/lib/systemd/system/lircd.service; enabled)
   Active: failed (Result: exit-code) since Mon 2013-04-15 15:33:45 PDT; 1min 4s ago
  Process: 592 ExecStart=/usr/sbin/lircd -d $LIRC_DEVICE -P /run/lirc/lircd.pid -H $LIRC_DRIVER $LIRC_CONFIGFILE (code=exited, status=1/FAILURE)
  Process: 589 ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd (code=exited, status=0/SUCCESS)
  Process: 586 ExecStartPre=/bin/rm -f /run/lirc/lircd (code=exited, status=0/SUCCESS)
  Process: 583 ExecStartPre=/bin/rm -f /dev/lircd (code=exited, status=0/SUCCESS)
  Process: 579 ExecStartPre=/bin/mkdir -p /run/lirc (code=exited, status=0/SUCCESS)

Anyone else having this issue?   Any suggestions on what might have changed, or a good fix?

Last edited by wilberfan (2013-06-01 02:52:20)


Hey, be nice...I'm new at this!

Offline

#2 2013-05-28 18:35:44

Echo
Member
From: Ohio, United States
Registered: 2006-05-16
Posts: 240

Re: [SOLVED] lircd fails since 1:0.9.0-43

I had the same thing happen to me today. The lircd.service file I'm using was pointing at /usr/sbin/lircd & does not exist. Change the lircd.service file you're using to point to /usr/bin/lircd (which is where lircd is located).

Offline

#3 2013-05-28 19:04:25

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 371

Re: [SOLVED] lircd fails since 1:0.9.0-43

Process: 592 ExecStart=/usr/sbin/lircd

lircd executable is move to /usr/bin/lircd

Offline

#4 2013-05-28 19:35:48

wilberfan
Member
From: So. Cal
Registered: 2010-12-18
Posts: 264

Re: [SOLVED] lircd fails since 1:0.9.0-43

sl1pkn07 wrote:

Process: 592 ExecStart=/usr/sbin/lircd

lircd executable is move to /usr/bin/lircd

Excellent!  I'll try that when I get home...  Thanks for pointing that out!  :-)


Hey, be nice...I'm new at this!

Offline

#5 2013-06-01 02:51:52

wilberfan
Member
From: So. Cal
Registered: 2010-12-18
Posts: 264

Re: [SOLVED] lircd fails since 1:0.9.0-43

sl1pkn07 wrote:

Process: 592 ExecStart=/usr/sbin/lircd

lircd executable is move to /usr/bin/lircd

For future reference, here's how I got lircd working again:

I edited /usr/lib/systemd/system/lircd.service, and changed ExecStart=/usr/sbin/lircd to ExecStart=/usr/bin/lircd:

[Unit]
Description=LIRC Daemon
After=network.target

[Service]
Type=forking
EnvironmentFile=/etc/conf.d/lircd.conf
PIDFile=/run/lirc/lircd.pid
ExecStartPre=/bin/mkdir -p /run/lirc
ExecStartPre=/bin/rm -f /dev/lircd
ExecStartPre=/bin/rm -f /run/lirc/lircd
ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd

ExecStart=/usr/bin/lircd -d $LIRC_DEVICE -P /run/lirc/lircd.pid -H $LIRC_DRIVER $LIRC_CONFIGFILE
ExecStopPost=/bin/rm -f /dev/lircd
ExecStopPost=/bin/rm -fR /run/lirc

[Install]
WantedBy=multi-user.target

It still didn't start.  I noticed that there was some kind of "Environment" error.   When I checked, my /etc/conf.d/lircd.conf file was missing.  (I have no idea why.)   I noticed a lircd.pacsave file, and when I copied and renamed it, lircd started up fine!  :-)


Hey, be nice...I'm new at this!

Offline

Board footer

Powered by FluxBB