[mythtv-users] Backend constantly restarting

Michael T. Dean mtdean at thirdcontact.com
Sat Nov 28 05:21:37 UTC 2009


On 11/27/2009 02:13 PM, Michael Harnden wrote:
> On Tuesday 24 November 2009 12:56:03 pm Michael T. Dean wrote:
>   
>> On 11/23/2009 07:20 PM, Chris Dennis wrote:
>>     
>>> I reinstalled monit this evening, and suddenly mythtv kept restarting
>>> -- I didn't notice until I found this thread that the restart was
>>> happening  exactly every minute.  For now, I'll live without monit.
>>>       
>> How was monit set to monitor the backend's status?  I need to know so I
>> can try to figure out why monit is killing Myth.
> I haven't had the time to reinstall (family is hooked on Mythtv and isn't fond of down time), but 
> here is the config file I was using.

Thanks.

>  When I have time I will reinstall and report back.
>   

Chris's confirmation is good enough for me, if it's good enough for you.

> # Monit control file
> #
> # Comments begin with a '#' and extend through the end of the line.
> # Blank lines between program entries are ignored. Keywords are case
> # insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'
> #
>
> set daemon  30
> set logfile /var/log/monit.log
> set mail-format
>  { from: mike at XXXX.site}
> set alert mike at XXXX.site  # Send alert to system admin on any event
> set httpd port 2812 and
>     allow XXXX.site
>     allow 192.168.1.0/255.255.255.0
>     allow 127.0.0.1
>     allow admin:monit     # user 'admin' with password 'monit'
>
>
> check process mythbackend with pidfile /var/run/mythtv/mythbackend.pid
>  #group mythtv
>  start program = "/etc/init.d/mythtv-backend restart"
>  stop program  = "/etc/init.d/mythtv-backend stop"
> # if failed port 6544 proto http then restart
>   

Does this mean the mythbackend check is commented/doing nothing?

>  depends on mysql
>
> check process mysql with pidfile /var/run/mysqld/mysqld.pid
>  #group mythtv
>  start program = "/etc/init.d/mysql start"
>  stop program = "/etc/init.d/mysql stop"
>  if failed port 3306 then restart

If so, would that mean that monit is restarting mysql over and over?  
(Ripping the MySQL server out from under Myth would cause problems.)

Mike


More information about the mythtv-users mailing list