Skip to content

Commit ab704c2

Browse files
committed
reduce restart loop to 1s
1 parent 2f9e6e3 commit ab704c2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

template/systemd/code-interpreter.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Type=simple
1010
WorkingDirectory=/root/.server
1111
ExecStart=/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
1212
Restart=always
13-
RestartSec=2
13+
RestartSec=1

template/systemd/jupyter.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ ExecStart=/usr/local/bin/jupyter server --IdentityProvider.token=""
1010
ExecStartPost=/root/.jupyter/jupyter-healthcheck.sh
1111
ExecStartPost=-/usr/bin/systemctl start code-interpreter
1212
Restart=on-failure
13-
RestartSec=2
13+
RestartSec=1
1414
StandardOutput=null
1515
StandardError=journal

0 commit comments

Comments
 (0)