29 lines
684 B
SYSTEMD
29 lines
684 B
SYSTEMD
|
|
[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
|