This commit is contained in:
zxr
2026-08-10 20:56:12 +08:00
parent 3d95965c95
commit 2fd95c9d75

28
etc/ops-logs.service Normal file
View File

@@ -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