Gentoo Archives: gentoo-user

From: covici@××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] how to tell you are using systemd?
Date: Thu, 01 Aug 2013 09:06:50
Message-Id: 21448.1375348000@ccs.covici.com
In Reply to: Re: [gentoo-user] how to tell you are using systemd? by Wang Xuerui
1 Wang Xuerui <idontknw.wang@×××××.com> wrote:
2
3 > 在 2013-8-1 上午10:26, <covici@××××××××××.com>写道:
4 > >
5 > > Can a shell script tell if systemd is the init? I have a couple of
6 > > places where it would be nice to know this.
7 > >
8 > > Thanks in advance for any suggestions.
9 >
10 > Check /proc/1/comm or something like that, IIRC...
11
12 OK, thanks.
13
14 --
15 Your life is like a penny. You're going to lose it. The question is:
16 How do
17 you spend it?
18
19 John Covici
20 covici@××××××××××.com