2005-12-08 12:14:33 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
2007-11-11 22:54:56 +00:00
|
|
|
bos_setrestart - Sets when the BOS Server restarts processes
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
=for html
|
|
|
|
<div class="synopsis">
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2006-03-01 05:02:29 +00:00
|
|
|
B<bos setrestart> S<<< B<-server> <I<machine name>> >>>
|
|
|
|
S<<< B<-time> <I<time to restart server>> >>> [B<-general>] [B<-newbinary>]
|
|
|
|
S<<< [B<-cell> <I<cell name>>] >>> [B<-noauth>] [B<-localauth>] [B<-help>]
|
|
|
|
|
|
|
|
B<bos setr> S<<< B<-s> <I<machine name>> >>> S<<< B<-t> <I<time to restart server>> >>>
|
|
|
|
[B<-g>] [B<-ne>] S<<< [B<-c> <I<cell name>>] >>> [B<-no>] [B<-l>] [B<-h>]
|
|
|
|
|
|
|
|
=for html
|
|
|
|
</div>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
The B<bos setrestart> command records in the F</usr/afs/local/BosConfig>
|
|
|
|
file the times at which the BOS Server running on the server machine named
|
|
|
|
by the B<-server> argument performs two types of restarts:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2010-01-13 17:28:24 +00:00
|
|
|
A I<general restart>. The BOS Server will restart itself,
|
|
|
|
and then any AFS process marked with the C<Run> status flag in the
|
2005-12-13 19:21:13 +00:00
|
|
|
F<BosConfig> file (equivalent in effect to issuing the B<bos restart>
|
2010-01-13 17:28:24 +00:00
|
|
|
command with the B<-bosserver> flag) at this time each week. By default,
|
|
|
|
in a new bos installation, general restarts are disabled.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
A I<binary restart>. By default, once per day the BOS Server restarts any
|
|
|
|
currently running process for which the timestamp on the binary file in
|
|
|
|
the F</usr/afs/bin> directory is later than the time the process last
|
|
|
|
started or restarted. The default is 5:00 a.m. each day.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
2005-12-09 14:48:56 +00:00
|
|
|
=head1 CAUTIONS
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Restarting a process makes it unavailable for a period of time. The B<fs>
|
|
|
|
process has potentially the longest outage, depending on how many volumes
|
|
|
|
the file server machine houses (the File Server and Volume Server reattach
|
|
|
|
each volume when they restart). The default settings are designed to
|
|
|
|
coincide with periods of low usage, so that the restarts disturb the
|
|
|
|
smallest possible number of users.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
If the setting specified with the B<-time> argument is within one hour of
|
|
|
|
the current time, the BOS Server does not restart any processes until the
|
|
|
|
next applicable opportunity (the next day for binary restarts, or the next
|
2005-12-08 12:14:33 +00:00
|
|
|
week for general restarts).
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
The command changes only one type of restart setting at a time; issue the
|
|
|
|
command twice to change both settings.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-server> <I<machine name>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Indicates the server machine on which to set a new restart time. Identify
|
|
|
|
the machine by IP address or its host name (either fully-qualified or
|
|
|
|
abbreviated unambiguously). For details, see L<bos(8)>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-time> <I<time to restart server>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Specifies the restart time. By convention the general restart is defined
|
|
|
|
as weekly (specifies both a day and a time), and the binary restart is
|
2005-12-08 12:14:33 +00:00
|
|
|
defined as daily (specifies only a time). However, it is acceptable to
|
|
|
|
define a daily general restart or weekly binary restart.
|
|
|
|
|
2005-12-21 00:41:17 +00:00
|
|
|
There are four acceptable values for either type of restart setting:
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
The string C<never>, which directs the BOS Server never to perform the
|
|
|
|
indicated type of restart.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
The string C<now>, which directs the BOS Server to perform the restart
|
|
|
|
immediately and never again.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
|
|
|
A time of day (the conventional type of value for the binary restart
|
2005-12-13 19:21:13 +00:00
|
|
|
time). Separate the hours and minutes with a colon (I<hh:MM>), an use
|
|
|
|
either 24-hour format, or a value in the range from C<1:00> through
|
|
|
|
C<12:59> with the addition of C<am> or C<pm>. For example, both C<14:30>
|
|
|
|
and C<"2:30 pm"> indicate 2:30 in the afternoon. Surround this parameter
|
|
|
|
with double quotes (C<"">) if it contains a space.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=item *
|
|
|
|
|
|
|
|
A day of the week and time of day, separated by a space and surrounded
|
2005-12-13 19:21:13 +00:00
|
|
|
with double quotes (C<"">). This is the conventional type of value for the
|
|
|
|
general restart. For the day, provide either the whole name or the first
|
|
|
|
three letters, all in lowercase letters (C<sunday> or C<sun>, C<thursday>
|
|
|
|
or C<thu>, and so on). For the time, use the same format as when
|
|
|
|
specifying the time alone.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
If desired, precede a time or day and time definition with the string
|
2005-12-13 19:21:13 +00:00
|
|
|
C<every> or C<at>. These words do not change the meaning, but possibly
|
|
|
|
make the output of the B<bos getrestart> command easier to understand.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-general>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Sets the general restart time.
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-newbinary>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Sets the binary restart time.
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-cell> <I<cell name>>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Names the cell in which to run the command. Do not combine this argument
|
|
|
|
with the B<-localauth> flag. For more details, see L<bos(8)>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-noauth>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Assigns the unprivileged identity C<anonymous> to the issuer. Do not
|
|
|
|
combine this flag with the B<-localauth> flag. For more details, see
|
|
|
|
L<bos(8)>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-localauth>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
Constructs a server ticket using a key from the local
|
2015-02-27 23:20:19 +00:00
|
|
|
F</usr/afs/etc/KeyFile> or F</usr/afs/etc/KeyFileExt> file.
|
|
|
|
The B<bos> command interpreter presents the
|
2005-12-13 19:21:13 +00:00
|
|
|
ticket to the BOS Server during mutual authentication. Do not combine this
|
|
|
|
flag with the B<-cell> or B<-noauth> options. For more details, see
|
|
|
|
L<bos(8)>.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
=item B<-help>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
Prints the online help for this command. All other valid options are
|
|
|
|
ignored.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 EXAMPLES
|
|
|
|
|
|
|
|
The following command sets the general restart time on the machine
|
doc: replace hostnames with IETF example hostnames
There were several different real and made-up hostnames and company names used
throughout our documentation examples.
The IETF has reserved "example.com" and other "example" TLDs for use in
examples (RFC 2606). Replace almost all references to ABC Corporation, DEF
Corporation, and State University, as well as "abc.com", "bigcell.com",
"def.com", "def.gov", "ghi.com", "ghi.gov", "jkl.com", "mit.edu",
"stanford.edu", "state.edu", "stateu.edu", "uncc.edu", and "xyz.com".
Standardize on "Example Corporation", "Example Network", "Example
Organization" (example.com, example.net, and example.org).
The Scout documentation in the Admin Guide contains PNG images that contain
the old cell names, so I left those references until the images can be
replaced.
Change-Id: I4e44815b2d2ffe204810b7fd850842248f67c367
Reviewed-on: http://gerrit.openafs.org/6697
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
2012-02-11 16:43:30 +00:00
|
|
|
C<fs4.example.com> to Saturday at 3:30 am.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
doc: replace hostnames with IETF example hostnames
There were several different real and made-up hostnames and company names used
throughout our documentation examples.
The IETF has reserved "example.com" and other "example" TLDs for use in
examples (RFC 2606). Replace almost all references to ABC Corporation, DEF
Corporation, and State University, as well as "abc.com", "bigcell.com",
"def.com", "def.gov", "ghi.com", "ghi.gov", "jkl.com", "mit.edu",
"stanford.edu", "state.edu", "stateu.edu", "uncc.edu", and "xyz.com".
Standardize on "Example Corporation", "Example Network", "Example
Organization" (example.com, example.net, and example.org).
The Scout documentation in the Admin Guide contains PNG images that contain
the old cell names, so I left those references until the images can be
replaced.
Change-Id: I4e44815b2d2ffe204810b7fd850842248f67c367
Reviewed-on: http://gerrit.openafs.org/6697
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
2012-02-11 16:43:30 +00:00
|
|
|
% bos setrestart -server fs4.example.com -time "sat 3:30" -general
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
The following command sets the binary restart time on the machine
|
doc: replace hostnames with IETF example hostnames
There were several different real and made-up hostnames and company names used
throughout our documentation examples.
The IETF has reserved "example.com" and other "example" TLDs for use in
examples (RFC 2606). Replace almost all references to ABC Corporation, DEF
Corporation, and State University, as well as "abc.com", "bigcell.com",
"def.com", "def.gov", "ghi.com", "ghi.gov", "jkl.com", "mit.edu",
"stanford.edu", "state.edu", "stateu.edu", "uncc.edu", and "xyz.com".
Standardize on "Example Corporation", "Example Network", "Example
Organization" (example.com, example.net, and example.org).
The Scout documentation in the Admin Guide contains PNG images that contain
the old cell names, so I left those references until the images can be
replaced.
Change-Id: I4e44815b2d2ffe204810b7fd850842248f67c367
Reviewed-on: http://gerrit.openafs.org/6697
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
2012-02-11 16:43:30 +00:00
|
|
|
C<fs6.example.com> to 11:45 pm.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
doc: replace hostnames with IETF example hostnames
There were several different real and made-up hostnames and company names used
throughout our documentation examples.
The IETF has reserved "example.com" and other "example" TLDs for use in
examples (RFC 2606). Replace almost all references to ABC Corporation, DEF
Corporation, and State University, as well as "abc.com", "bigcell.com",
"def.com", "def.gov", "ghi.com", "ghi.gov", "jkl.com", "mit.edu",
"stanford.edu", "state.edu", "stateu.edu", "uncc.edu", and "xyz.com".
Standardize on "Example Corporation", "Example Network", "Example
Organization" (example.com, example.net, and example.org).
The Scout documentation in the Admin Guide contains PNG images that contain
the old cell names, so I left those references until the images can be
replaced.
Change-Id: I4e44815b2d2ffe204810b7fd850842248f67c367
Reviewed-on: http://gerrit.openafs.org/6697
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
2012-02-11 16:43:30 +00:00
|
|
|
% bos setrestart -server fs6.example.com -time 23:45 -newbinary
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 PRIVILEGE REQUIRED
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
The issuer must be listed in the F</usr/afs/etc/UserList> file on the
|
|
|
|
machine named by the B<-server> argument, or must be logged onto a server
|
|
|
|
machine as the local superuser C<root> if the B<-localauth> flag is
|
|
|
|
included.
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2005-12-13 19:21:13 +00:00
|
|
|
L<BosConfig(5)>,
|
|
|
|
L<KeyFile(5)>,
|
2015-02-27 23:20:19 +00:00
|
|
|
L<KeyFileExt(5)>,
|
2005-12-13 19:21:13 +00:00
|
|
|
L<UserList(5)>,
|
|
|
|
L<bos(8)>,
|
|
|
|
L<bos_getrestart(8)>,
|
|
|
|
L<bos_restart(8)>
|
2005-12-08 12:14:33 +00:00
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
|
|
|
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
|
|
|
|
|
|
|
|
This documentation is covered by the IBM Public License Version 1.0. It was
|
|
|
|
converted from HTML to POD by software written by Chas Williams and Russ
|
|
|
|
Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
|