File size: 347 Bytes
a2b0c04
 
 
 
 
1
2
3
4
5
6
#!/bin/sh
# Run a command inside the shortlist.slice cgroup: everything Shortlist runs shares one 3 GB memory cap,
# so the rest of the machine keeps its memory. Set with:
#   systemctl --user set-property --runtime shortlist.slice MemoryMax=3G MemoryHigh=2800M MemorySwapMax=0
exec systemd-run --user --scope --slice=shortlist.slice --quiet "$@"