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

fix sysv init scripts #502

Merged
merged 1 commit into from Nov 22, 2020
Merged

Conversation

kubicgruenfeld
Copy link
Sponsor

Pull Request (PR) description

This PR fixes the sysv-init-scripts for centos 6. Which was already tried in #294

This Pull Request (PR) fixes the following issues

Fixes #293

@kubicgruenfeld kubicgruenfeld changed the title fix sysv init scripts for centos6 fix sysv init scripts Nov 13, 2020
@kubicgruenfeld
Copy link
Sponsor Author

I tried at first to reenable the centos 6 tests, but since it will be EOL in a few days i skipped it. they need a lot of work to be feasible again.

Nevertheless there are a few supported sysv-init systems out there which would profit from this fix, so i am not sure how to proceed. I did let the tests deactivated for now for centos 6.

-web.console.templates=/usr/local/share/prometheus/consoles \
-web.console.libraries=/usr/local/share/prometheus/console_libraries \
-storage.local.path=/var/lib/prometheus \
-storage.local.retention=360h \
>> "$LOG_FILE" &
>> '$LOG_FILE' 2>&1 &"
Copy link
Member

Choose a reason for hiding this comment

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

can you explain what this actually fixes? support paths with whitespace?

Copy link

Choose a reason for hiding this comment

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

Hi, without the additional double quotes parent startup processes remain after startup and logfiles are touched as root.
e.g.

`
/bin/bash /etc/init.d/prometheus restart (root)
\_ runuser -s /bin/bash prometheus -c ulimit -S -c 0 >/dev/null ... (root)

\_ bash -c ulimit -S -c 0 >/dev/null 2>&1 ; /usr/local/bin/prometheus --config.file... (prometheus)

\_ /usr/local/bin/prometheus --config.file=/etc/prometheus/prometheus.yaml --web.console.... (prometheus)
`

compared to

493 56754 6.0 0.0 774908 53652 ? Sl 09:18 0:00 /usr/local/bin/prometheus --config.file=/etc/prometheus/prometheus.yaml --web.console.templates=/usr/local/share/prometheus/consoles --web.console.libraries=/usr/local/share/prometheus/console_libraries --st

@bastelfreak bastelfreak added bug Something isn't working needs-feedback Further information is requested labels Nov 13, 2020
@bastelfreak bastelfreak removed the needs-feedback Further information is requested label Nov 22, 2020
@bastelfreak bastelfreak merged commit f8b5ec7 into voxpupuli:master Nov 22, 2020
cegeka-jenkins pushed a commit to cegeka/puppet-prometheus that referenced this pull request Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SysV init script leaves dangling shell processes
3 participants