Skip to content

Commit

Permalink
fix systemd detection; fixes #4421 (#4423)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou committed Oct 22, 2018
1 parent 7c12771 commit 35fa430
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions installer/functions.sh
Expand Up @@ -452,10 +452,9 @@ issystemd() {
# if pid 1 is systemd, it is systemd
[ "$(basename $(readlink /proc/1/exe) 2>/dev/null)" = "systemd" ] && return 0

# -- ubuntu runs systemd as init ---
## if systemd is not running, it is not systemd
#pids=$(pidof systemd 2>/dev/null)
#[ -z "${pids}" ] && return 1
# if systemd is not running, it is not systemd
pids=$(pidof systemd 2>/dev/null)
[ -z "${pids}" ] && return 1

# check if the running systemd processes are not in our namespace
myns="$(readlink /proc/self/ns/pid 2>/dev/null)"
Expand Down

0 comments on commit 35fa430

Please sign in to comment.