Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
Did you try service lirc restart? – devav2 Oct 18 '12 at 9:25
Yes I did try "service lirc restart". No change, the MCE remote just ceased to work, reboot fixed it. – Bengt Nilsson Oct 20 '12 at 15:17

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
share|improve this answer

it is not problem with

/etc/init.d/lirc restart


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 &
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.