Deleted Added
full compact
1.\" Copyright (C) 1993 by Andrew A. Chernov, Moscow, Russia.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 39 unchanged lines hidden (view full) ---

48.Nm adjkerntz
49can be called in two forms:
50.Bl -tag -width 4n
51.It Cm Fl i
52initialization call from
53.Pa /etc/rc
54(before any daemons are started).
55.Nm Adjkerntz
56makes the adjustment of kernel clock (CMOS clock not touched)
57and the initial time zone offset is stored into
58.Pa adjkerntz
59kernel variable
60for following subsequent
61.Nm "'adjkerntz -a'"
62calls. Then it goes to background pause which ends with SIGTERM.
63After receiving SIGTERM it acts like
64.Nm "'adjkerntz -a'"
65to be shure to have proper CMOS clock before reboot.
66.It Cm Fl a
67This form is needed, when time zone changes occur.
68.Nm Adjkerntz
69uses the previously stored
70time zone offset and the changed time zone rule to
71produce the new time zone offset, fix the CMOS clock
72(kernel clock not touched)
73and store the new
74offset into
75.Pa adjkerntz
76kernel variable
77too.
78It is recommended to use this form in root's
79.Xr crontab 5
80every half of a hour from 0am to 4am
81since this times matches most modern time zone changes.
82.El
83.Pp
84.Nm Adjkerntz
85clears the kernel timezone structure and makes kernel always run at UTC
86time zone.
87Super-user privilege is required for all operations.
88.Sh ENVIRONMENT
89.Bl -tag -width Fl
90.It Ev TZ

--- 39 unchanged lines hidden ---