We cannot stop lirc! Have you ever tried stoppping lirc while MMS is running? CPU-Usage goes up to 100% ...
VDR just looses lirc if it was shutdown and reconnects, but MMS does not like it very much (own experiences and Anders' warning)
I noticed, that even debian's /etc/init.d/lirc is using signal "1" to reload the config:
if $START_LIRCD; then
start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircd
And because it is using start-stop-daemon, we do have the pid in:
So I see no reason call it a 'workaround'!
If we disable vdr's remote with a patched-in svdrp command or if we make lirc reload it's config ... seems the second is the cleaner way!
Sadly we cannot use MMS' config option 'tvopts' anymore while using scripts ... but ... the 'tvopts' may be passed to a script as $1, may they?
Damn ... I'm so terrible in scripting
All that is needed is a wrapper, which takes $1 as input (options), keeps alive as long as one is using the external program to keep MMS acting like it is runing and has 4 variables defined in the beginning ((1) original lircd.conf, (2) lircd.conf for MMS, (3) lircd.conf for external app, (4) external app) !?