Skip to content

Commit b8a5f0e

Browse files
committed
Cleanup.py script instead of sh
1 parent a4a0754 commit b8a5f0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/en/docs/cluster/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ client:
2626
2727
You can also set a time that the script should wait after a job has finished execution to give the system time to cool down. Please use the [calibrate script]({{< relref "/docs/installation/calibration" >}}) to fine tune this value.
2828
29-
After running a job the client program executes the `tools/cluster/cleanup.sh` script that does general house keeping on the machine. This is done in a batch fashion to not run when a benchmark is currently run.
29+
After running a job the client program executes the `tools/cluster/cleanup.py` script that does general house keeping on the machine. This is done in a batch fashion to not run when a benchmark is currently run.
3030

3131
To make sure that the client is always running you can create a service that will start at boot and keep running.
3232

@@ -63,12 +63,12 @@ systemctl --user status green-coding-client # check status
6363

6464
You should now see the client reporting it's status on the server. It is important to note that only the client ever talks to the server (polling). The server never tries to contact the client. This is to not create any interrupts while a measurement might be running.
6565

66-
After running a job the client program executes the `tools/cluster/cleanup.sh` script that does general house keeping on the machine. This is done in a batch fashion to not run when a benchmark is currently run.
66+
After running a job the client program executes the `tools/cluster/cleanup.py` script that does general house keeping on the machine. This is done in a batch fashion to not run when a benchmark is currently run.
6767

6868
This script is run as root and thus needs to be in the `/etc/sudoers` file or subdirectories somewhere. We recommend the following:
6969

7070
```bash
71-
echo 'ALL ALL=(ALL) NOPASSWD:/home/gc/green-metrics-tool/tools/cluster/cleanup.sh ""' | sudo tee /etc/sudoers.d/green-coding-cluster-cleanup
71+
echo 'ALL ALL=(ALL) NOPASSWD:/home/gc/green-metrics-tool/tools/cluster/cleanup.py ""' | sudo tee /etc/sudoers.d/green-coding-cluster-cleanup
7272
sudo chmod 500 /etc/sudoers.d/green-coding-cluster-cleanup
7373
```
7474

0 commit comments

Comments
 (0)