Skip to content

Commit

Permalink
Add systemd service
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha0552 authored Aug 7, 2024
1 parent fbdece5 commit 1666999
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,24 @@ cmake -B build
# Build
cmake --build build
```

## Misc

### systemd service

Install `nvidia-pstated` in `/usr/local/bin`. Then save the following file as `/etc/systemd/system/nvidia-pstated.service`.

```text
[Unit]
Description=A daemon that automatically manages the performance states of NVIDIA GPUs
StartLimitInterval=0
[Service]
DynamicUser=yes
ExecStart=/usr/local/bin/nvidia-pstated
Restart=on-failure
RestartSec=1s
[Install]
WantedBy=multi-user.target
```

0 comments on commit 1666999

Please sign in to comment.