Compare commits

..

3 Commits

Author SHA1 Message Date
Brian Seymour 2ca831f822 use login shell again since rust breaks without it 2021-02-18 16:29:04 -06:00
Brian Seymour f358b58cb6 Merge branch 'master' of ssh://github.com/engineer-man/piston 2021-02-18 16:26:16 -06:00
Brian Seymour 4af1aa670b replace pkill loop with pgrep while loop 2021-02-18 16:26:11 -06:00
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ exec 200>&-
# prevent users from spying on each other # prevent users from spying on each other
lxc-attach --clear-env -n piston -- \ lxc-attach --clear-env -n piston -- \
/bin/bash -l -c " /bin/bash -c "
chown runner$runner: -R /tmp/$id chown runner$runner: -R /tmp/$id
chmod 700 /tmp/$id chmod 700 /tmp/$id
" > /dev/null 2>&1 " > /dev/null 2>&1
@ -39,8 +39,8 @@ timeout -s KILL 20 \
# process janitor # process janitor
lxc-attach --clear-env -n piston -- \ lxc-attach --clear-env -n piston -- \
/bin/bash -l -c " /bin/bash -c "
for i in {1..100} while pgrep -u runner$runner > /dev/null
do do
pkill -u runner$runner --signal SIGKILL pkill -u runner$runner --signal SIGKILL
done done