Skip to content

Commit

Permalink
Merge pull request #22 from woblerr/conf_systemd
Browse files Browse the repository at this point in the history
Allow to redefine parameters in systemd unit via env file.
  • Loading branch information
woblerr authored Nov 16, 2024
2 parents d720292 + 9ccbfd4 commit 66c3c0c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions authlog_exporter.service.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ Description=authlog_exporter

[Service]
Type=simple
Environment="AUTH_LOG_PATH=/var/log/auth.log"
Environment="EXPORTER_ENDPOINT=/metrics"
Environment="EXPORTER_PORT=9991"
ExecStart=/usr/bin/authlog_exporter --auth.log=${AUTH_LOG_PATH} --web.endpoint=${EXPORTER_ENDPOINT} --web.listen-address=:${EXPORTER_PORT}
Environment="ARGS=--auth.log=/var/log/auth.log --web.endpoint=/metrics --web.listen-address=:9991"
EnvironmentFile=-/etc/default/authlog_exporter
ExecStart=/usr/bin/authlog_exporter $ARGS
Restart=always
RestartSec=5s

Expand Down

0 comments on commit 66c3c0c

Please sign in to comment.