looper/start-memory-limited.sh

5 lines
112 B
Bash
Raw Permalink Normal View History

2024-08-08 13:12:37 -07:00
#!/bin/bash
MEMORY_MAX="$1"
shift
systemd-run --scope -p MemoryMax="$MEMORY_MAX" -p MemorySwapMax=0 --user "$@"