RWServer’s TechBlog

Ideas and Comments about how to get things done

February 28, 2007

Mythtv Tip: Script to babysit the backend

by @ 4:16 pm. Filed under Mythtv


I’ve been running a simple cron task every minute to restart my mythtv backend if it crashes but it wasn’t good enough. I tried using monit but it seems to think the backend is down when it is not and restarts it several times during a recording.

This post from the knoppmyth forums includes a nice script to take care of this along with instructions:

Exceptions:

You can easily extend it to add exceptions too.

Installation:
From a directory such as /tmp, as root:

Code:
wget http://www.thornsoft.com/Misc/babysit_backend.sh
cp babysit_backend.sh /usr/local/bin
chmod +x /usr/local/bin/babysit_backend.sh

run: babysit_backend.sh

It should exit with no messages, if the backend is running. Otherwise it’ll restart it.

Suggested usage - add this line to crontab:

Code:
* * * * * /usr/local/bin/babysit_backend.sh >>/var/log/mythtv/babysit_backend.log 2>&1

Gigabyte Desktop motherboard supports LinuxBIOS

by @ 11:05 am. Filed under Linux, Hardware

February 23, 2007

Fitnesse: Solving Couldn’t cast XYZ.ABC to Fixture

by @ 4:10 pm. Filed under .Net

February 8, 2007

HOWTO: vncserver on Fedora

by @ 12:42 pm. Filed under Uncategorized

February 7, 2007

HOWTO: Type spanish special characters in Linux (updated)

by @ 8:01 am. Filed under Linux, Sysadmin

February 6, 2007

TIP: Install cacert.org SSL certificates in Linux/Apache

by @ 11:24 am. Filed under Linux, Sysadmin

February 4, 2007

Kernel 2.6.20 released

by @ 10:26 pm. Filed under Linux

TIP: Fixing yum search error in Fedora 6

by @ 11:35 am. Filed under Linux

February 3, 2007

TIP: Permissions when mounting NTFS partitions in Linux

by @ 7:18 pm. Filed under Uncategorized

HOWTO: vmware server in Kernel 2.6.19

by @ 5:21 pm. Filed under Sysadmin

search blog:

categories:

archives:

February 2007
M T W T F S S
« Jan   Mar »
 1234
567891011
12131415161718
19202122232425
262728  

other:

Get Firefox!

general links:

internal links:

21 queries. 0.253 seconds