Skip to content

Commit 7ae6ffd

Browse files
committed
Added poweroff
1 parent 777da6d commit 7ae6ffd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ In order for the shutdown to be triggered by the `client.py` you must allow the
6161

6262
Example:
6363
```bash
64-
echo 'ALL ALL=(ALL) NOPASSWD:/usr/bin/systemctl suspend' | sudo tee /etc/sudoers.d/green-coding-shutdown
64+
echo 'ALL ALL=(ALL) NOPASSWD:/usr/bin/systemctl suspend' | sudo tee /etc/sudoers.d/green-coding-shutdown # for systems that support suspend
65+
echo 'ALL ALL=(ALL) NOPASSWD:/usr/bin/systemctl poweroff' | sudo tee -a /etc/sudoers.d/green-coding-shutdown # for systems that only can shutdown
6566
sudo chmod 500 /etc/sudoers.d/green-coding-shutdown
6667
```
6768

0 commit comments

Comments
 (0)