Skip to content

Commit 730f76a

Browse files
committed
kill as group
1 parent f86f1ca commit 730f76a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

template/start-jupyter.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3-
trap 'echo "Jupyter exited, killing code-interpreter..."; pkill -f "uvicorn main:app"' EXIT
3+
/usr/local/bin/jupyter server --IdentityProvider.token=""
44

5-
exec /usr/local/bin/jupyter server --IdentityProvider.token=""
5+
# Jupyter exited — kill code-interpreter so supervisord restarts both
6+
echo "Jupyter exited, killing code-interpreter..."
7+
pkill -f "uvicorn main:app"

template/supervisord.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ stdout_logfile=/dev/null
1010
stderr_logfile=/dev/fd/1
1111
stderr_logfile_maxbytes=0
1212
autorestart=true
13+
stopasgroup=true
14+
killasgroup=true
1315
priority=10
1416

1517
[program:code-interpreter]

0 commit comments

Comments
 (0)