File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,15 @@ Description=Code Interpreter Server
33Documentation =https://github.com/e2b-dev/code-interpreter
44Requires =jupyter.service
55After =jupyter.service
6- BindsTo =jupyter.service
6+ PartOf =jupyter.service
7+ StartLimitBurst =0
78
89[Service]
910Type =simple
1011WorkingDirectory =/root/.server
1112ExecStartPre =/root/.jupyter/jupyter-healthcheck.sh
1213ExecStart =/root/.server/.venv/bin/uvicorn main:app --host 0.0.0.0 --port 49999 --workers 1 --no-access-log --no-use-colors --timeout-keep-alive 640
13- Restart =always
14+ Restart =on-failure
1415RestartSec =1
1516StandardOutput =journal
1617StandardError =journal
Original file line number Diff line number Diff line change 11[Unit]
22Description =Jupyter Server
33Documentation =https://jupyter-server.readthedocs.io
4+ Wants =code-interpreter.service
45
56[Service]
67Type =simple
78Environment =MATPLOTLIBRC =/root/.config/matplotlib/.matplotlibrc
89Environment =JUPYTER_CONFIG_PATH =/root/.jupyter
910ExecStart =/usr/local/bin/jupyter server --IdentityProvider.token =""
10- ExecStartPost =-/usr/bin/systemctl start --no-block code-interpreter
11+ ExecStartPost =-/usr/bin/systemctl reset-failed code-interpreter
1112Restart =on-failure
1213RestartSec =1
1314StandardOutput =null
You can’t perform that action at this time.
0 commit comments