Reference
set timeout cli
On this page
Change the timeout period for an interactive session with the Runtime API.
Description Jump to heading
The time limit for an interactive session defaults to the value set with the stats timeout
directive in the global
section of your configuration. You can change it to a number of seconds with the set timeout cli
command during the interactive session. The new time limit affects the current session only.
Examples Jump to heading
To set the timeout period:
-
Connect to the Runtime API socket:
nixsudo socat stdio tcp4-connect:127.0.0.1:9999nixsudo socat stdio tcp4-connect:127.0.0.1:9999 -
Start an interactive session:
nixpromptnixprompt -
Change the timeout to 10 minutes (600 seconds):
nixset timeout cli 600nixset timeout cli 600
See also Jump to heading
Do you have any suggestions on how we can improve the content of this page?