summaryrefslogtreecommitdiff
path: root/scripts/systemd/fundlab-api.service
diff options
context:
space:
mode:
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