Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prometheus: harden systemd service #415

Merged
merged 1 commit into from
Jan 6, 2020
Merged

prometheus: harden systemd service #415

merged 1 commit into from
Jan 6, 2020

Conversation

bastelfreak
Copy link
Member

those hardening options are live in the Arch package since a long time. I use them as well and they work fine. Arch source: https://git.archlinux.org/svntogit/packages.git/tree/trunk/prometheus.service?h=packages/prometheus

@bastelfreak bastelfreak added the enhancement New feature or request label Jan 6, 2020
@bastelfreak bastelfreak self-assigned this Jan 6, 2020
Copy link

@igalic igalic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙋

@@ -16,6 +16,19 @@ ExecStart=/usr/local/bin/prometheus \
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any good reason for not setting the KillMode to control-group?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about it. I didn't touch this options since I don't know yet which value would suit best.

@dhollinger dhollinger merged commit 27c98e2 into voxpupuli:master Jan 6, 2020
@bastelfreak bastelfreak deleted the systemd4 branch January 6, 2020 19:42
@anarcat
Copy link

anarcat commented Feb 5, 2020

FWIW, i have forwarded this to the debian package as well https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950759

cegeka-jenkins pushed a commit to cegeka/puppet-prometheus that referenced this pull request Jan 21, 2021
prometheus: harden systemd service
Rovanion pushed a commit to Rovanion/puppet-prometheus that referenced this pull request May 5, 2021
prometheus: harden systemd service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants