fix(proc/reboot_required): disable on non Debian-based systems (#19110)
Ilya Mashchenko committed
Nov 30, 2024 at 18:14 UTC
4038a7d49bdad4a7a35bba8da2f2ec5849837ec0
1 file changed
+3
src/collectors/proc.plugin/run_reboot_required.c
+3
@@ -33,6 +33,9 @@ int do_run_reboot_required(int update_every, usec_t dt) {
33
if (!netdata_configured_host_prefix || !*netdata_configured_host_prefix || is_dir_mounted(filename) != 1) {
34
return 1;
35
}
36
+ } else if (access("/usr/bin/dpkg", X_OK) != 0) {
37
+ // reboot-required only used by Debian-based systems
38
+ return 1;
39
}
40
41
snprintfz(filename, FILENAME_MAX, "%s%s", netdata_configured_host_prefix, "/var/run/reboot-required");