-
-
Save lierdakil/08d9171abf6133db0411e6f464fc0484 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
trap "exit" INT TERM | |
trap "kill 0" EXIT | |
unshare -U bash -c 'kill -STOP $$; exec /opt/muse-hub/Muse.Service' & | |
pid=$! | |
while ! ( grep '^State:' /proc/$pid/status | grep -q $'\tT ' ); do | |
sleep 0.1s | |
done | |
echo "0 $UID 1" > /proc/$pid/uid_map | |
kill -CONT $pid | |
wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment