bash/usr-local-bin/briar: replace cpulimit with systemd-run

This commit is contained in:
Aminda Suomalainen 2024-08-02 13:45:47 +03:00
parent e492be76c4
commit 51ec4b71c5
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash
set -x
cpulimit --lazy --include-children --limit=30 flatpak run org.briarproject.Briar//stable "$@"
# Fedora-only, Debian uses a different CPU limit implementation!
#cpulimit --lazy --include-children --limit=30 flatpak run org.briarproject.Briar//stable "$@"
systemd-run --scope -p CPUQuota="30%" --user flatpak run org.briarproject.Briar//stable "$@"
set +x