home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!fauern!uni-erlangen.de!faui63.informatik.uni-erlangen.de!horst
- From: horst@faui63.informatik.uni-erlangen.de (Horst Luehrsen)
- Newsgroups: comp.unix.aix
- Subject: Re: xntp and rc files
- Date: Thu, 17 Dec 1992 16:37:44 GMT
- Organization: IMMD 6 - Lehrstuhl fuer Datenbanksysteme
- Distribution: world
- Message-ID: <1gqacoEINNhb1@uni-erlangen.de>
- References: <1992Dec15.230028.68@rcwusr>
- Reply-To: horst@faui63.informatik.uni-erlangen.de (Horst Luehrsen)
- NNTP-Posting-Host: faui63.informatik.uni-erlangen.de
- Lines: 52
-
-
- In article <1992Dec15.230028.68@rcwusr>, jenkinsonjp@rcwusr.bp.com writes:
- >From: jenkinsonjp@rcwusr.bp.com
- >Newsgroups: comp.unix.aix
- >Subject: xntp and rc files
- >
- >how do *YOU* get xntp started at boot? scripts that work don't when
- >invoked as an rc file. reboot opportunities are rare, so hints appreciated.
- >
- I start xntp in /etc/rclocal, startet from init. But sometimes xntp doesn't
- come up after a reboot, so I use:
-
- /etc/rc.local:
- ...
- if [ -x /usr/local/etc/ntpdate ]; then
- /usr/local/etc/ntpdate ntps1-0 ntps1-1 ntps2-1
- echo " ntpdate"
- fi
-
- if [ -x /usr/local/etc/xntpd -a -f /usr/local/etc/ntp.conf ]; then
- /usr/local/etc/xntpd -c /usr/local/etc/ntp.conf
- echo " xntpd"
- fi
-
- echo "ksh /etc/xntp.restart" | at now+2minutes
-
- /etc/xntp.restart:
- ...
- ps -ef | grep -v grep | grep xntpd
- if [[ $? = 0 ]]
- then
- echo "xntp Version 3 time service already running"
- else
- echo "Starting xntp Version 3 time service..."
-
- if [ -x /usr/local/etc/ntpdate ]; then
- /usr/local/etc/ntpdate ntps1-0 ntps1-1 ntps2-0
- echo " ntpdate"
- fi
-
- if [ -x /usr/local/etc/xntpd -a -f /usr/local/etc/ntp.conf ]; then
- /usr/local/etc/xntpd -c /usr/local/etc/ntp.conf
- echo " xntpd"
- fi
- fi
-
- Horst
- --
- Horst Luehrsen <luehrsen@informatik.uni-erlangen.de>
- Martensstrasse 3, W-8520 Erlangen
- Tel: +49-9131-857884 Fax:+49-9131-32090
- ** No keyboard - Press F1 to continue! **
-