mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 05:26:28 +02:00
Compare commits
No commits in common. "2ca831f8226c1123bc1e27d2a634f10110c022dc" and "b9ef21cbea463cff6d64f09af07f9800be06c7d2" have entirely different histories.
2ca831f822
...
b9ef21cbea
1 changed files with 3 additions and 3 deletions
|
@ -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 -c "
|
/bin/bash -l -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 -c "
|
/bin/bash -l -c "
|
||||||
while pgrep -u runner$runner > /dev/null
|
for i in {1..100}
|
||||||
do
|
do
|
||||||
pkill -u runner$runner --signal SIGKILL
|
pkill -u runner$runner --signal SIGKILL
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue