[mythtv-users] Remotely restarting mythfrontend

Stroller linux.luser at myrealbox.com
Tue Feb 13 03:26:53 UTC 2007


On 13 Feb 2007, at 00:19, Matthias Thyroff wrote:
> Am Montag, den 12.02.2007, 19:54 +0000 schrieb Stroller:
>>
>> You already state that `/etc/init.d/kdm restart` works for you, so
>> why do it any differently with lirc?
>>
>> ...
>> So passing "start" to `/etc/init.d/kdm` should not be a problem,  
>> either:
>>
>>      begin
>>          prog   = irexec
>>          button = TV
>>          repeat = 0
>>          config = /etc/init.d/kdm restart
>>      end
>>
>> Your solution and antani's both check MythTV's PID, but my distro's
>> init.d scripts already record the PID and make a note if it so that
>> they can kill the process when I run them with the "stop" or
>> "restart" parameter. I would rather leave PID management to them, as
>> in my experience distro's init scripts tend to be quite long and
>> comprehensive, handling case scenarios that I might have thought of
>> when hacking together a quick bash script. If kill the process &
>> start the program again manually it prevents them from doing their  
>> job.
>
> Thanks for your input! For me, it seems pretty convenient to be  
> able to
> start and stop the frontend without restarting X; something else might
> be running on it, too. Or maybe I just want to start xmms to play
> instead of using mythmusic.
>
> Btw, I think you got frontend and backend mixed up.

Oh, I see. My apologies.

I haven't yet installed MythTV, so I forgot that the MythTV frontend  
is usually (?? or always?) started by the X display manager. I  
assumed a pair of /etc/init.d/mythfrontend & /etc/init.d/mythbackend  
scripts.

Please forgive me for (in)correcting you.

Stroller.


More information about the mythtv-users mailing list