在 2013-8-1 上午10:26, <cov...@ccs.covici.com>写道: > > Can a shell script tell if systemd is the init? I have a couple of > places where it would be nice to know this. > > Thanks in advance for any suggestions.
Check /proc/1/comm or something like that, IIRC...