mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-05-17 21:44:45 +02:00
a39f1a6a36
* init otel * deflock group * no internal metrics * only log errors for now
26 lines
456 B
Desktop File
26 lines
456 B
Desktop File
[Unit]
|
|
Description=OpenTelemetry Collector (deflock)
|
|
After=network.target
|
|
Wants=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=otelcol
|
|
Group=deflock
|
|
|
|
ExecStart=/usr/local/bin/otelcol-contrib --config /etc/otelcol/config.yaml
|
|
|
|
EnvironmentFile=/home/nullplate/secrets/api/.env
|
|
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
|
|
# Harden the service
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/var/lib/otelcol
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|