#!/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 "$@"