Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions infra/docvault-api.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Description=DocVault API Server (Fastify)
Documentation=https://github.com/your-org/docvault
After=network.target postgresql.service
Requires=postgresql.service
StartLimitIntervalSec=60s
StartLimitBurst=5

[Service]
Type=simple
Expand All @@ -18,8 +20,6 @@ ExecStart=/usr/bin/node \
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=5s
StartLimitIntervalSec=60s
StartLimitBurst=5
StandardOutput=journal
StandardError=journal
SyslogIdentifier=docvault-api
Expand Down
6 changes: 3 additions & 3 deletions infra/docvault-worker.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Description=DocVault Embedding Worker (Python)
Documentation=https://github.com/your-org/docvault
After=network.target postgresql.service
Requires=postgresql.service
# Allow up to 5 restarts in 60 seconds before pausing
StartLimitIntervalSec=60s
StartLimitBurst=5

[Service]
Type=simple
Expand All @@ -19,9 +22,6 @@ Environment=CUDA_VISIBLE_DEVICES=0
ExecStart=__DOCVAULT_VENV__/bin/python main.py
Restart=on-failure
RestartSec=10s
# Allow up to 5 restarts in 60 seconds before pausing
StartLimitIntervalSec=60s
StartLimitBurst=5
# Give the model time to load before systemd marks it failed
TimeoutStartSec=120
StandardOutput=journal
Expand Down
Loading
Loading