[mythtv-users] HD PVR and IR transmitter for channel change (why)

Dan Wilga mythtv-users2 at dwilga-linux1.amherst.edu
Fri Dec 17 16:33:31 UTC 2010


On 12/17/10 10:53 AM, R. G. Newbury wrote:
> This is a useful place for lots of "make it right" commands and scripts.
> I put a number of 'service XXX start' commands here which don't like 
> to start up earlier because the system is not ready. For example, I 
> start ntpd and ntpdate from rc.local because it takes some time for 
> the network to properly get DNS working through my cableco (Rogers). 
> Ntp *always* fails if started from an rc5.d script position. I *think* 
> it is because the cable-modem drops to a sleep state.

While I agree with the premise that rc.local is often a good place to 
start things like this, it's also possible to rearrange things in 
/etc/rc.d/rc*.d. For instance, if ntpd is giving you problems:

   cd /etc/rc.d/rc5.d
   rm S58ntpd
   ln -s ../init.d/ntpd S99ntpd

This will cause ntpd to start (S) at around the same time as other 
things with the number 99, which is the last number.

Granted, if you ever use chkconfig to add/remove ntpd at this runlevel, 
it will overwrite this change. That's because the init script itself 
contains the number your distro's creators think is correct (58 in this 
case):

#!/bin/bash
#
# ntpd          This shell script takes care of starting and stopping
#               ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74

-- 
Dan Wilga                                                        "Ook."



More information about the mythtv-users mailing list