2

I have installed lirc, and I want to use irexec to control my music player daemon (mpd) using mpc commands from my mce remote control. Works fine, except for one thing:

If I want to edit the /etc/lirc/lircrc file to map the remote control buttons to commands, I need to reboot in order to read in and use the edited lircrc button/command definition file. To test things out is then a rather painful and time consuming experience.

/etc/init.d/lirc restart 

does NOT do the trick, it just makes the remote stop working. Function returns after reboot.

What elese needs to be restarted? Or should I use some other method?

2
  • Did you try service lirc restart?
    – devav2
    Oct 18, 2012 at 9:25
  • Yes I did try "service lirc restart". No change, the MCE remote just ceased to work, reboot fixed it. Oct 20, 2012 at 15:17

2 Answers 2

0

Sending a HUP signal to the daemon makes it reread the config file.

Find daemon pid:

$ ps -elf | grep lircd
$ 1 S root      3198     1  0  80   0 -  4545 -      09:56 ?        00:00:00 /usr/sbin/lircd --device=/dev/lirc0

Send the HUP signal:

$ sudo kill-HUP 3198
0

it is not problem with

/etc/init.d/lirc restart

or

service lirc restart

that works fine. Problem is when lirc is going down during the restart - irexec going down to. So the simply solition is start irexec again

nohup irexec &

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .