PDA

View Full Version : checking for NCIDD running on another TiVo before calling tivocid


gbonawitz
03-26-2007, 02:23 PM
I have two Tivos, and only one (let's say Tivo A) has a phone jack anywhere near it. On Tivo A I have tivocid & ncidd running for caller id to tv. On Tivo B I have tivocid running but have edited the config file to point to the ncidd on Tivo A.

I have edited rc.sysinit.author on both tivos to call the respective programs after the 2 AM startup. Here's my issue - I think Tivo B might be trying to run tivocid (looking for ncidd on tivo A) before ncidd on Tivo A has started. The caller id alway works fine on tivo A, but I notice the display doesn't come up on tivo B. When I telnet to tivo B and manually start tivocid, then it works.

I suppose I could put a sleep command on tivo B's rc.sysinit.author to wait before it tries to run tivocid, but I'm wondering if there's a slicker way to detect if ncidd is running on tivo a first before I try to run tivocid on tivo B. Reason being is sometimes I get lazy and echo new commands to rc.sysinit.author that I wouldn't want to bottleneck behind the sleep link for tivocid.

Of course, one option is to give up editing rc.sysinit.author via echo and use vi consistently..:)

DocTauri
03-28-2007, 05:47 PM
Why are you doing a 2am restart? Yes, there are ways to do this, using procd would be one I can think of, but you'd have to script it and it's probably more than you want to get into. A "sleep 300" would probably be your easiest method, but if you're rebooting every night at 2am, and NOT doing it on purpose, then you need to look into fixservice.tcl.

Doc