0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-14 01:29:11 +00:00
netdata_netdata/system
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
..
cron Reorganize system directory to better reflect what files are actually used for. () 2023-02-27 12:38:25 -05:00
freebsd/rc.d Reorganize system directory to better reflect what files are actually used for. () 2023-02-27 12:38:25 -05:00
initd/init.d Reorganize system directory to better reflect what files are actually used for. () 2023-02-27 12:38:25 -05:00
launchd Reorganize system directory to better reflect what files are actually used for. () 2023-02-27 12:38:25 -05:00
logrotate Reorganize system directory to better reflect what files are actually used for. () 2023-02-27 12:38:25 -05:00
lsb/init.d Reorganize system directory to better reflect what files are actually used for. () 2023-02-27 12:38:25 -05:00
openrc Consistently start the agent as root and rely on it to drop privileges properly. () 2023-06-15 07:33:26 -04:00
runit Consistently start the agent as root and rely on it to drop privileges properly. () 2023-06-15 07:33:26 -04:00
systemd Consistently start the agent as root and rely on it to drop privileges properly. () 2023-06-15 07:33:26 -04:00
vnodes Add vnodes default configuration file. () 2023-03-13 16:42:58 +02:00
.install-type Store info about the installation type for later retrieval. () 2021-05-24 07:34:09 -04:00
edit-config Don’t try to use tput in edit-config unless it’s installed. () 2023-03-13 07:34:41 -04:00
install-service.sh.in Fix how we are handling system services in RPM packages. () 2023-03-27 09:19:27 -04:00
Makefile.am Fix how we are handling system services in RPM packages. () 2023-03-27 09:19:27 -04:00
netdata.conf Document netdatacli dumpconfig option () 2023-04-25 08:49:01 -07:00