RE: Determining the running init

2016-05-05 Thread James Powell
From: Steve Litt
Sent: Monday, May 2, 2016 4:18 PM
To: supervision@list.skarnet.org
Subject: Re: Determining the running init

On Mon, 02 May 2016 16:20:20 -0400
James Cloos <cl...@jhcloos.com> wrote:

> I don't have a runit system up right now.
> 
> Could someone show me what:
> 
>   lsof -a -p 1 -d txt
> 
> outputs when run on a runit-based system?
> 
> Thanks!
> 
> -JimC

[root@mydesk ~]# lsof -a -p 1 -d txt
COMMAND PID USER  FD   TYPE DEVICE SIZE/OFF    NODE NAME
runit 1 root txt    REG    8,1   754872 2364332 /usr/bin/runit
[root@mydesk ~]#

Beware that this is Runit as installed by Void Linux. I suppose
theoretically a different type of Runit installation could yield a
different result.

SteveT

Steve Litt 
April 2016 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21


Runit will vary upon implementation but generally most follow the same 
guidelines for Stage 2. Stage 1 will vary depending on how the scripts are 
setup. You can have a monolithic stage 1 or modular stage 1.

-Jim


Re: Determining the running init

2016-05-02 Thread Steve Litt
On Mon, 02 May 2016 16:20:20 -0400
James Cloos  wrote:

> I don't have a runit system up right now.
> 
> Could someone show me what:
> 
>   lsof -a -p 1 -d txt
> 
> outputs when run on a runit-based system?
> 
> Thanks!
> 
> -JimC

[root@mydesk ~]# lsof -a -p 1 -d txt
COMMAND PID USER  FD   TYPE DEVICE SIZE/OFFNODE NAME
runit 1 root txtREG8,1   754872 2364332 /usr/bin/runit
[root@mydesk ~]#

Beware that this is Runit as installed by Void Linux. I suppose
theoretically a different type of Runit installation could yield a
different result.

SteveT

Steve Litt 
April 2016 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21


Determining the running init

2016-05-02 Thread James Cloos
I don't have a runit system up right now.

Could someone show me what:

  lsof -a -p 1 -d txt

outputs when run on a runit-based system?

Thanks!

-JimC
-- 
James Cloos  OpenPGP: 0x997A9F17ED7DAEA6