[pkg-go] Bug#814802: prometheus: Please add native systemd support and config reload

Michael Gebetsroither michael at mgeb.org
Sat Feb 13 13:10:36 UTC 2016


Package: prometheus
Version: 0.16.2+ds-1
Severity: important
Tags: patch

Dear Maintainer,

Please include a native systemd unit file to make the package more user friendly.
https://wiki.debian.org/Teams/pkg-systemd/Packaging

We observed the following advantages:
 - working config hot reload support
 - working journal log output
 - systemd unit not "hanging" in state active(stopped) because of sysv init emulation
 - not killing a production node with too much log output because of journal only

Simplified unit file we use on our clusters:
[Unit]
Description=Monitoring system and time series database
Documentation=https://prometheus.io/docs/introduction/overview/

[Service]
Restart=always
User=prometheus
EnvironmentFile=/etc/default/prometheus
ExecStart=/usr/bin/prometheus $ARGS
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

btw... thx for your packages, they work great on jessie too!

michael

-- System Information:
Debian Release: sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386



More information about the Pkg-go-maintainers mailing list