public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] ntpd and ntpdate
@ 2003-03-18 12:12 Andy Arbon
  2003-03-18 12:25 ` Paul de Vrieze
  0 siblings, 1 reply; 6+ messages in thread
From: Andy Arbon @ 2003-03-18 12:12 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Is there a neat way to just run ntpdate at system initialisation? I
don't want to use my Gentoo machine as an ntp server, but I would like
it to synchronise its clock with another machine on my network at bootup.

Is there an easy way to do this, or should I submit it as a RFE to the
ntpd configuration and startup scripts?

Cheers,

Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+dw0+X3TTUvZURBERAjagAJ9LPG4eWqlQlBjghFLZpd+dtdAl7ACdE+ek
tTNFEgG23Kc9TXK/OCs7yx4=
=6iuB
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-dev] ntpd and ntpdate
@ 2003-03-18 12:13 Andy Arbon
  0 siblings, 0 replies; 6+ messages in thread
From: Andy Arbon @ 2003-03-18 12:13 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

Is there a neat way to just run ntpdate at system initialisation? I
don't want to use my Gentoo machine as an ntp server, but I would like
it to synchronise its clock with another machine on my network at bootup.

Is there an easy way to do this, or should I submit it as a RFE to the
ntpd configuration and startup scripts?

Cheers,

Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+dw1dX3TTUvZURBERAqbJAJ0ZHIbAKMqwWV3gCWd0wcOOuI9lqACfX7CT
6KchmL3TU9damkdo4iZ8b28=
=rW7X
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] ntpd and ntpdate
  2003-03-18 12:12 [gentoo-dev] ntpd and ntpdate Andy Arbon
@ 2003-03-18 12:25 ` Paul de Vrieze
  2003-03-18 13:14   ` Andy Arbon
  0 siblings, 1 reply; 6+ messages in thread
From: Paul de Vrieze @ 2003-03-18 12:25 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 775 bytes --]

On Tuesday 18 March 2003 13:12, Andy Arbon wrote:
> Hello,
>
> Is there a neat way to just run ntpdate at system initialisation? I
> don't want to use my Gentoo machine as an ntp server, but I would like
> it to synchronise its clock with another machine on my network at bootup.
>
> Is there an easy way to do this, or should I submit it as a RFE to the
> ntpd configuration and startup scripts?
>
> Cheers,
>
> Andy

This is allready included in the ntp scripts. Just edit the configuration 
file. Btw. ntpd is not a necesarilly server. It takes care that the time 
stays correct. Check the ntpd.conf file for restricting the server 
capabilities.

Paul

-- 
Paul de Vrieze
Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.cs.kun.nl/~pauldv

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] ntpd and ntpdate
  2003-03-18 12:25 ` Paul de Vrieze
@ 2003-03-18 13:14   ` Andy Arbon
  2003-03-18 13:25     ` Dylan Carlson
  2003-03-18 13:59     ` Markus Krainer
  0 siblings, 2 replies; 6+ messages in thread
From: Andy Arbon @ 2003-03-18 13:14 UTC (permalink / raw
  To: gentoo-dev

Paul de Vrieze wrote:
>>Is there a neat way to just run ntpdate at system initialisation? I

> This is allready included in the ntp scripts. Just edit the configuration 
> file. Btw. ntpd is not a necesarilly server. It takes care that the time 
> stays correct. Check the ntpd.conf file for restricting the server 
> capabilities.
> 
Thanks for the advice. This still isn't really what I was after. I want 
a really lightweight way of making sure that my machines are in 
reasonable sync, but I'm not really worried about it enough to want to 
have another daemon process hanging around looking after the time.

What I've done is write a 2 line bash script for /etc/init.d/ which just 
runs ntpdate once using the ntpdate configurations in /etc/conf.d/ntpd, 
which should be sufficient (Copied below for the terminally lazy ;) )

As an aside: Does anyone know what will happen the next time the package 
containing /etc/init.d/* is updated? Will it remove my script or is that 
protected?

Cheers,

Andy

#!/bin/bash
# A script to one off launch ntpdate

if [ $1 == 'start' ]; then
     source /etc/conf.d/ntpd;
     $NTPDATE_CMD $NTPDATE_OPTS;
fi



--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] ntpd and ntpdate
  2003-03-18 13:14   ` Andy Arbon
@ 2003-03-18 13:25     ` Dylan Carlson
  2003-03-18 13:59     ` Markus Krainer
  1 sibling, 0 replies; 6+ messages in thread
From: Dylan Carlson @ 2003-03-18 13:25 UTC (permalink / raw
  To: Andy Arbon, gentoo-dev

On Tuesday 18 March 2003 08:14 am, Andy Arbon wrote:

>
> Thanks for the advice. This still isn't really what I was after. I want
> a really lightweight way of making sure that my machines are in
> reasonable sync, but I'm not really worried about it enough to want to
> have another daemon process hanging around looking after the time.

Try merging net-misc/rdate, and just put rdate in your root crontab.  rdate 
works fine if you don't need microsecond accuracy ...

# rdate -s <whatever timeserver you use>

Also look into using 'hwclock --systohc' as well.  The man pages have all 
the info you will need.

Cheers,
Dylan Carlson

Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x708E165F
Key fingerprint = 3AEA DE38 FE42 15A6 C0E2 730E 3D04 BCC1 708E 165F

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] ntpd and ntpdate
  2003-03-18 13:14   ` Andy Arbon
  2003-03-18 13:25     ` Dylan Carlson
@ 2003-03-18 13:59     ` Markus Krainer
  1 sibling, 0 replies; 6+ messages in thread
From: Markus Krainer @ 2003-03-18 13:59 UTC (permalink / raw
  To: gentoo-dev

Andy Arbon wrote:
>>> Is there a neat way to just run ntpdate at system initialisation? I


Just add your ntpdate command ('ntpdate -b your.time.server') to
/etc/conf.d/local.start

hth,

   Markus






--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-03-18 13:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-18 12:12 [gentoo-dev] ntpd and ntpdate Andy Arbon
2003-03-18 12:25 ` Paul de Vrieze
2003-03-18 13:14   ` Andy Arbon
2003-03-18 13:25     ` Dylan Carlson
2003-03-18 13:59     ` Markus Krainer
  -- strict thread matches above, loose matches on Subject: below --
2003-03-18 12:13 Andy Arbon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox