fix
This commit is contained in:
28
etc/ops-logs.service
Normal file
28
etc/ops-logs.service
Normal 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
|
||||||
Reference in New Issue
Block a user