Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

BN

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
add comment

2 Answers

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

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
add comment

Your Answer

 
discard

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.