xref: /netbsd-src/external/bsd/ntp/dist/scripts/rc/README (revision 8585484ef87f5a04d32332313cdb799625f4faf8)
1*8585484eSchristosThis directory contains some example rc scripts for ntpd.
2*8585484eSchristos
3*8585484eSchristosIn general, ntpd should be started as soon as possible in the boot process. If
4*8585484eSchristosany services require stable system clock, the ntpwait script should be run
5*8585484eSchristosbefore them as late as possible.
6*8585484eSchristos
7*8585484eSchristosThe rc.d contains scripts for systems using rc.d init system (originated in
8*8585484eSchristosNetBSD). If a service requires stable system time, indicate it with TIMESYNC
9*8585484eSchristosdependency and set ntpwait_enable to YES.
10*8585484eSchristos
11*8585484eSchristosFor SysV init systems, you'll have to create links as /etc/rc2.d/S20ntpd and
12*8585484eSchristos/etc/rc2.d/S80ntpwait yourself. (The numbers are just examples, try to give
13*8585484eSchristosntpd as much time as possible to synchronize before running ntpwait).
14