mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
Compare commits
3 commits
b9ef21cbea
...
2ca831f822
Author | SHA1 | Date | |
---|---|---|---|
|
2ca831f822 | ||
|
f358b58cb6 | ||
|
4af1aa670b |
1 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ exec 200>&-
|
|||
|
||||
# prevent users from spying on each other
|
||||
lxc-attach --clear-env -n piston -- \
|
||||
/bin/bash -l -c "
|
||||
/bin/bash -c "
|
||||
chown runner$runner: -R /tmp/$id
|
||||
chmod 700 /tmp/$id
|
||||
" > /dev/null 2>&1
|
||||
|
@ -39,8 +39,8 @@ timeout -s KILL 20 \
|
|||
|
||||
# process janitor
|
||||
lxc-attach --clear-env -n piston -- \
|
||||
/bin/bash -l -c "
|
||||
for i in {1..100}
|
||||
/bin/bash -c "
|
||||
while pgrep -u runner$runner > /dev/null
|
||||
do
|
||||
pkill -u runner$runner --signal SIGKILL
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue