Gentoo Archives: gentoo-user

From: Wang Xuerui <idontknw.wang@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] how to tell you are using systemd?
Date: Thu, 01 Aug 2013 02:39:24
Message-Id: CABK5mSY1FVnSfdb72DsD-5BZHDzvEpzTw22GVnCmuY8wYcyt5w@mail.gmail.com
In Reply to: [gentoo-user] how to tell you are using systemd? by covici@ccs.covici.com
1 在 2013-8-1 上午10:26, <covici@××××××××××.com>写道:
2 >
3 > Can a shell script tell if systemd is the init? I have a couple of
4 > places where it would be nice to know this.
5 >
6 > Thanks in advance for any suggestions.
7
8 Check /proc/1/comm or something like that, IIRC...

Replies

Subject Author
Re: [gentoo-user] how to tell you are using systemd? "Canek Peláez Valdés" <caneko@×××××.com>
Re: [gentoo-user] how to tell you are using systemd? covici@××××××××××.com