looper/start-memory-limited.sh
2024-09-06 10:06:32 -07:00

4 lines
112 B
Bash
Executable file

#!/bin/bash
MEMORY_MAX="$1"
shift
systemd-run --scope -p MemoryMax="$MEMORY_MAX" -p MemorySwapMax=0 --user "$@"