I was using the following command to check whether system uses systemd
if [[ 1 == pidof systemd ]]; then
But this fails in chroot since proc is not mounted.
sh-4.2# pidof systemd
sh-4.2# ps
Error, do this: mount -t proc proc /proc
What alternative method can be used to check whether system uses systemd or sysv?