fix(mcp,db,systemd,logrotate): move telemetry DB to /var/lib/hyperstitionstud.io/api-telemetry.db via StateDirectory=hyperstitionstud.io and catch sqlite3.Error (v2.0.22)
This commit is contained in:
1 parent
95a5fc8618
commit
9716a0ab61
24 files changed
+140
-84
No files matched your search
@@ -7,9 +7,10 @@ Before=caddy.service
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/srv/hyperstitionstud.io/repos
|
||||
StateDirectory=hyperstitionstud.io
|
||||
Environment="HYPERSTITIONSTUDIO_CONFIG=/srv/hyperstitionstud.io/repos/workspace.toml"
|
||||
Environment="PYTHONPATH=/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/src"
|
||||
Environment="HYPERSTITION_TELEMETRY_DB_PATH=/tmp/hyperstition-api-telemetry.db"
|
||||
Environment="HYPERSTITION_TELEMETRY_DB_PATH=/var/lib/hyperstitionstud.io/api-telemetry.db"
|
||||
Environment="HYPERSTITION_SQLITE_MAX_MB=100"
|
||||
ExecStart=/srv/hyperstitionstud.io/repos/.venv/bin/python3 /srv/hyperstitionstud.io/repos/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/server.py --transport http --host 127.0.0.1 --port 8095
|
||||
Restart=always
|
||||
@@ -17,6 +18,7 @@ RestartSec=2
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
ReadOnlyPaths=/srv/hyperstitionstud.io/repos
|
||||
ReadWritePaths=/var/lib/hyperstitionstud.io
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user