converge/pkg/agent/session/help.txt
Erik Brakkee 0d60b70ada Updated documentation:
* remote shell usage for linux, cmd, and powershell
* help of wsproxy.
2024-08-01 20:53:52 +02:00

20 lines
421 B
Plaintext

You can extend expiry of the session using
{{ if eq .os "windows" -}}
# cmd
echo > %agentdir%\.hold
# powershell
$null > $env:agentdir\.hold
{{- else -}}
touch $agentdir/.hold
{{- end }}
The expiry time is equal to the modification time of the .hold
file with the expiry duration (%v) added.
To prevent the agent from exiting after the last session is gone,
also use the above command in any shell.