@cryptotaxi247 / netdata-1 / commits / baac9dc53

remove check for running systemd process

Costa Tsaousis (ktsaou) committed Sep 11, 2018 at 19:25 UTC baac9dc53bc204d4506d7b36b190059d4685bd57
1 file changed +4 -3
installer/functions.sh
+4 -3
@@ -449,9 +449,10 @@ issystemd() {
449 # if pid 1 is systemd, it is systemd
450 [ "$(basename $(readlink /proc/1/exe) 2>/dev/null)" = "systemd" ] && return 0
451
452 - # if systemd is not running, it is not systemd
453 - pids=$(pidof systemd 2>/dev/null)
454 - [ -z "${pids}" ] && return 1
452 + # -- ubuntu runs systemd as init ---
453 + ## if systemd is not running, it is not systemd
454 + #pids=$(pidof systemd 2>/dev/null)
455 + #[ -z "${pids}" ] && return 1
456
457 # check if the running systemd processes are not in our namespace
458 myns="$(readlink /proc/self/ns/pid 2>/dev/null)"