0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-03 04:55:33 +00:00
Commit graph

4 commits

Author SHA1 Message Date
Ilya Mashchenko
5ea9665d48
remove USR1 "Save internal DB to disk" () 2024-03-26 09:16:11 +02:00
Austin S. Hemmelgarn
39e629e24c
Consistently start the agent as root and rely on it to drop privileges properly. ()
* Consolidate preparation of required directories.

The only differences between cases where the prep is done is how we
derive the UID and GID that get passed to some of the functions. By just
encapsulating the preparation in a function like this, we make this
differentiation obvious while also making it easier to modify what
directories need to be created or prepared.

* Create the log directory if it does not already exist.

We treat the log directory not existing as a fatal error, but we can (in
most cases) just create it on startup, so just do so.

* Trust netdata to handle dropping privileges itself.

This allows more correct behavior with respect to handling of required
directories, and also ensures that our system service scripts properly
support running the agent as arbitrary users instead of requiring it to
run as the user configured at build time.

* Fix build issues.

* Move directory creation to be done alongside directory existence checks.

* Fix syntax errors and address review feedback.
2023-06-15 07:33:26 -04:00
Austin S. Hemmelgarn
4c20aca875
Assorted improvements to OpenRC support. ()
* Add OpenRC conf.d file for Netdata.

* Tidy-up handling of retry schedule.

It should be computed in stop_pre so it gets evaluated after the conf
file, and it also needs to handle variables not being defined properly
(which it currently does not).

* Add a service description and command descriptions.

* Only install `/etc/conf.d/netdata` if it does not already exist.

This prevents overwriting user configuration.
2023-03-01 07:27:32 -05:00
Austin S. Hemmelgarn
8b93deb7b0
Reorganize system directory to better reflect what files are actually used for. ()
* Move systemd-specific system files to their own directory.

* Move non-systemd init scripts to individual subdirectories.

* Move cron files to their own directory.

* Move logrotate config to it’s own directory.

* Fix typos in Makefile.am.

* Fix Debian package builds.

* Fixed issues reported by @andrewm4894.
2023-02-27 12:38:25 -05:00