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