BOS_SETRESTART(8)
π BOS_SETRESTART π
okay bestie, welcome to the AFS Command Reference β this is the bos_setrestart page and it's literally about telling your BOS Server when to restart stuff. πβ¨
πΈ NAME πΈ
bos_setrestart β sets when the BOS Server restarts processes π«Ά
π SYNOPSIS π
bos setrestart -server <machine name>
-time <time to restart server> [-general] [-newbinary]
[-cell <cell name>] [-noauth] [-localauth] [-help]
bos setr -s <machine name> -t <time to restart server>
[-g] [-ne] [-c <cell name>] [-no] [-l] [-h]
π¦ DESCRIPTION π¦
So the tea is: bos setrestart writes into the /etc/openafs/BosConfig file the exact times when the BOS Server running on the machine you named with the -server argument is gonna do its restarts. And there are two kinds of restarts it handles. π
- A general restart. At this time each week, the BOS Server restarts itself, and then every AFS process in the
BosConfigfile that's marked with the"Run"status flag. (Effect-wise it's the same as running thebos restartcommand with the-bosserverflag. Same energy, different command.) And fun fact: in a brand-new bos install, general restarts are disabled by default. π - A binary restart. By default, once per day, the BOS Server restarts any process that's currently running where the timestamp on the binary file in the
/usr/lib/openafsdirectory is later than the time that process last started or restarted. The default for this one is 5:00 a.m. every single day. β
β οΈ CAUTIONS β οΈ
okay this is the part where we get serious for a sec, no cap. π₯
Restarting a process makes it unavailable for a period of time. And the fs process? It can have potentially the longest outage of all, depending on how many volumes the file server machine houses β because the File Server and Volume Server have to reattach every single volume when they restart. π The default settings are designed to line up with periods of low usage, so the restarts disturb the smallest possible number of users. It's giving considerate. π«Ά
π¨ If the time you set with -time is within one hour of the current time, the BOS Server does not restart any processes until the next applicable opportunity β that's the next day for binary restarts, or the next week for general restarts. So don't be surprised when nothing happens, bestie.
Also important: the command changes only one type of restart setting at a time. So if you wanna change both, you gotta issue the command twice. two commands, two vibes, periodt. π
β¨ OPTIONS β¨
-server<machine name> β Says which server machine you're setting a new restart time on. Identify the machine by IP address or by its host name (either fully-qualified or abbreviated unambiguously). For the deets, seebos(8). π₯οΈ-time<time to restart server> β Specifies the restart time. By convention the general restart is defined as weekly (so it specifies both a day and a time), and the binary restart is defined as daily (so it only specifies a time). But lowkey, it's totally acceptable to define a daily general restart or a weekly binary restart. You do you. β¨
There are four acceptable values for either type of restart setting:
- The string
"never"β tells the BOS Server to never, ever perform the indicated type of restart. never ever. π - The string
"now"β tells the BOS Server to do the restart immediately and then never again. one and done, iconic. - A time of day (the conventional value for the binary restart time). Separate the hours and minutes with a colon (hh:MM), and use either 24-hour format, or a value in the range from
"1:00"through"12:59"withamorpmtacked on. For example, both"14:30"and"2:30 pm"mean 2:30 in the afternoon. π Surround this parameter with double quotes ("") if it contains a space. - A day of the week and a time of day, separated by a space and surrounded with double quotes (
""). This is the conventional value for the general restart. For the day, give either the whole name or the first three letters, all in lowercase ("sunday"or"sun","thursday"or"thu", and so on). For the time, use the same format as when you're specifying the time alone. π
And if you want, you can precede a time or a day-and-time definition with the string "every" or "at". These words don't change the meaning at all β they just maybe make the output of the bos getrestart command easier to understand. cute lil readability moment. π
-generalβ Sets the general restart time. π-newbinaryβ Sets the binary restart time. π-cell<cell name> β Names the cell to run the command in. Do not combine this argument with the-localauthflag. For more details, seebos(8). π§-noauthβ Assigns the unprivileged identity"anonymous"to whoever's issuing the command. Do not combine this flag with the-localauthflag. For more details, seebos(8). π-localauthβ Constructs a server ticket using a key from the local/etc/openafs/server/KeyFileor/etc/openafs/server/KeyFileExtfile. Theboscommand interpreter presents that ticket to the BOS Server during mutual authentication. Do not combine this flag with the-cellor-noauthoptions. For more details, seebos(8). π-helpβ Prints the online help for this command. Every other valid option gets ignored. bye. π
π EXAMPLES π
This one sets the general restart time on the machine "fs4.example.com" to Saturday at 3:30 am:
% bos setrestart -server fs4.example.com -time "sat 3:30" -general
And this one sets the binary restart time on the machine "fs6.example.com" to 11:45 pm:
% bos setrestart -server fs6.example.com -time 23:45 -newbinary
ate. no crumbs. π₯
π PRIVILEGE REQUIRED π
Whoever's issuing this command has got to be listed in the /etc/openafs/server/UserList file on the machine named by the -server argument. Or, they've gotta be logged onto a server machine as the local superuser "root" if the -localauth flag is included. main character credentials only. π
π¦ SEE ALSO π¦
BosConfig(5), KeyFile(5), KeyFileExt(5), UserList(5), bos(8), bos_getrestart(8), bos_restart(8)
π 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.
and that's the whole page bestie!! π this was OpenAFS, dated 2026-07-27 β go forth and schedule your restarts at a reasonable hour, ily, mwah ππ¦β¨
π¦ where this page comes from
- ubuntu stonking: openafs-client 1.8.16.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms