From 3d95b9c736a4cf59cf26bd9e5c7c3162ee8c0fd7 Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Tue, 22 Sep 2026 07:30:09 +0800 Subject: Add fund-lab production systemd --user units and gateway config (3d-28) --- scripts/systemd/fundlab-api.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/systemd/fundlab-api.service (limited to 'scripts/systemd/fundlab-api.service') 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 -- cgit v1.2.3