-
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 #388
Conversation
* fix runtime directory; annotate daemon status file * chmod the spawn server socket * do not collect system info during initialization
* spawn an init spawn server while netdata runs; then stop it and run the final one * stop the old one before dropping permissions * remove the leading dot from spawn server filenames * save the status file on every step during startup * minor update * add clarity about the double use of the function
Reviewer's Guide by SourceryThis pull request includes several important changes to improve the reliability and security of Netdata. It introduces more granular logging of the startup process, enhances directory validation and creation, updates the spawn server to use Sequence diagram for Netdata startup processsequenceDiagram
participant Netdata Main
participant Daemon Status File
participant Registry
Netdata Main->>Daemon Status File: daemon_status_file_check_crash()
Daemon Status File->>Daemon Status File: daemon_status_file_load()
alt last_session_status.host_id is zero
Daemon Status File->>Registry: registry_get_this_machine_guid(false)
Registry-->>Daemon Status File: machine_guid
end
Netdata Main->>Netdata Main: Various initialization steps
loop For each static thread
Netdata Main->>Netdata Main: Initialize static threads
end
Netdata Main->>Daemon Status File: daemon_status_file_startup_step(step)
Daemon Status File->>Daemon Status File: daemon_status_file_save(DAEMON_STATUS_NONE)
Netdata Main->>Daemon Status File: daemon_status_file_save(DAEMON_STATUS_RUNNING)
Updated class diagram for directory validationclassDiagram
class verify_required_directory {
+verify_required_directory(env: const char*, dir: const char*, create_it: bool, perms: int)
}
note for verify_required_directory "Validates and optionally creates required directories with specified permissions."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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
This pull request enhances the daemon status file with host and OS information, improves the daemon startup process with detailed logging, fixes issues related to disk space and read-only conditions, and ensures the machine GUID is always available. It also refactors directory verification and updates signal handling for better logging and status management.
Bug Fixes:
Enhancements:
Chores: