NB! It seems this console command is not compatible with CS2.
Command Profile
SV_MAXUPTIMELIMIT
CS:GO
This command sets the maximum amount of time, in hours, that a server can run for before shutting itself down. Default is 0 (no limit).
Syntax
sv_maxuptimelimit [Hours]
Description
This command sets the maximum amount of time, in hours, that a server can run for before shutting itself down. Default is 0 (no limit).
Syntax And Arguments
sv_maxuptimelimit [Hours]
| Hours | The maximum amount of time, in hours, that the server can run for. |