From 2fd95c9d753f3030df0fd4fcf18e39e5004e6ef8 Mon Sep 17 00:00:00 2001 From: zxr <271055687@qq.com> Date: Mon, 10 Aug 2026 20:56:12 +0800 Subject: [PATCH] fix --- etc/ops-logs.service | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 etc/ops-logs.service diff --git a/etc/ops-logs.service b/etc/ops-logs.service new file mode 100644 index 0000000..77eb2cb --- /dev/null +++ b/etc/ops-logs.service @@ -0,0 +1,28 @@ +[Unit] +Description=OPS Logs Service +Wants=network-online.target +Requires=ops-mgt.service +After=network-online.target ops-mgt.service +PartOf=ops-stack.target + +[Service] +Type=simple +WorkingDirectory=/data/app +EnvironmentFile=/data/app/etc/ops.env +Environment=BSM_RuntimeMode=prod +Environment=RUN_MODE=prod +Environment=BSM_Prefix=/data/app +ExecStart=/data/app/ops-logs +ExecStartPost=/data/app/systemd/wait-http.sh ops-logs http://127.0.0.1:12440/Logs/v1/ping/hello 60 +Restart=on-failure +RestartSec=5s +TimeoutStartSec=75s +TimeoutStopSec=30s +KillSignal=SIGTERM +StandardOutput=journal +StandardError=journal +SyslogIdentifier=ops-logs +LimitNOFILE=1048576 + +[Install] +WantedBy=ops-stack.target