forked from netdata/netdata
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[pull] master from netdata:master #302
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Query systemd for unit file paths on install/uninstall. This makes our installation code more portable and more concise, and should make the uninstallation code significantly more robust. Also includes a number of other improvements to systemd handling and updater handling in the uninstaller that should make it much more thorough and reliable. * Fix issues brought up in code review, and better support old systemd versions. * Replace sed with AWK for readability. * Fix uninstaller loop. * Fix unit file detection in updater code.
…19413) * add "netdata-" prefix for streaming and metrics-cardinality functions * update priority
Reviewer's Guide by SourceryThis pull request updates the uninstaller and updater scripts to improve handling of systemd units and updater files. It also modifies the naming and priority of certain API functions and updates the license file handling in the Windows packaging script. Sequence diagram for improved uninstaller processsequenceDiagram
participant U as Uninstaller
participant S as Systemd
participant F as File System
U->>U: Check if systemd is present
U->>F: Disable auto-updates
U->>S: Disable systemd units
U->>S: Stop systemd units
loop For each unit
U->>S: Get unit path
U->>S: Get override paths
U->>F: Remove unit files
end
U->>F: Remove systemd configs
U->>S: Reload daemon
U->>F: Remove remaining files
Sequence diagram for enhanced auto-update processsequenceDiagram
participant U as Updater
participant S as Systemd
U->>S: Check if systemd exists
U->>S: Check if timer unit exists
alt Timer unit exists
U->>S: Enable timer
U->>S: Start timer
else Timer unit missing
U->>U: Report error
end
Flow diagram for systemd service directory selectionflowchart TD
A[Start] --> B{Get systemd unit paths}
B -->|Success| C[Filter lib paths]
B -->|Fallback| D[Use default paths]
C --> E[Filter etc paths]
D --> F{Check each path}
E --> F
F -->|Found writable dir| G[Return path]
F -->|Not found| H[Try next path]
H --> F
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Disable auto-updates before uninstalling files and improve systemd unit handling.
New Features:
Bug Fixes:
Enhancements: