summaryrefslogtreecommitdiff
path: root/scripts/systemd/fundlab-api.service
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-22 07:30:09 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-22 07:30:09 +0800
commit3d95b9c736a4cf59cf26bd9e5c7c3162ee8c0fd7 (patch)
tree843b04ddb0c3307f05cd1b5d26d4d70aec2ff0dc /scripts/systemd/fundlab-api.service
parent6ba727422137b35c00b9bb983e574d23a4d15e24 (diff)
downloadfund-lab-3d95b9c736a4cf59cf26bd9e5c7c3162ee8c0fd7.tar.gz
Add fund-lab production systemd --user units and gateway config (3d-28)
Diffstat (limited to 'scripts/systemd/fundlab-api.service')
-rw-r--r--scripts/systemd/fundlab-api.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/systemd/fundlab-api.service b/scripts/systemd/fundlab-api.service
new file mode 100644
index 0000000..ecdbd9b
--- /dev/null
+++ b/scripts/systemd/fundlab-api.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=fund-lab API (loopback 5080, real Postgres + real AKShare interpreter)
+Documentation=file:/home/somhairle/projects/fund-lab/scripts/systemd/README.md
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=simple
+WorkingDirectory=/home/somhairle/projects/fund-lab
+EnvironmentFile=/home/somhairle/projects/fund-lab/.env.deploy
+ExecStart=/usr/bin/dotnet /home/somhairle/projects/fund-lab/src/FundLab.Api/publish/FundLab.Api.dll
+Restart=on-failure
+RestartSec=3
+StandardOutput=append:/home/somhairle/projects/fund-lab/var/fund-lab/api.log
+StandardError=append:/home/somhairle/projects/fund-lab/var/fund-lab/api.log
+
+[Install]
+WantedBy=default.target