Closed samschott closed 1 year ago
Look at the contents of /proc/1/comm to detect the init system used on Linux instead of relying on ps -p 1 because ps might not be available or the -p flag may not be supported. Fixes #839.
/proc/1/comm
ps -p 1
ps
-p
Look at the contents of
/proc/1/comm
to detect the init system used on Linux instead of relying onps -p 1
becauseps
might not be available or the-p
flag may not be supported. Fixes #839.