Skip to content

Commit 949e13f

Browse files
committed
cluster poweroff dynamic
1 parent 1a8cbc4 commit 949e13f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

content/en/docs/cluster/power-saving.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,17 @@ fi
4848
### Turning machine off on empty queue
4949
To use this functionality you should have *Wake-on-LAN* activated.
5050

51-
You can then set the `shutdown_on_job_no` to *True* and the machine will turn off when the job queue is empty.
51+
You can then set the `shutdown_on_job_no` to either "*poweroff*" or "*suspend*" and the machine will turn off when the job queue is empty.
5252

5353
```yml
5454
cluster:
5555
client:
5656
...
57-
shutdown_on_job_no: True
57+
shutdown_on_job_no: suspend
5858
```
5959
6060
In order for the shutdown to be triggered by the `client.py` you must allow the `sudo` call without password in an `/etc/sudoers.d/` entry.
61+
Please choose the line that is appropriate for you depending on if you want to suspend or poweroff.
6162

6263
Example:
6364
```bash

0 commit comments

Comments
 (0)