66
www.obarun.org

66-info

This command displays information about trees and services.

Interface

Main interface

	66-info [ -h help ] [ -T tree ] [ -S service ]
	

Tree sub interface

	66-info [ -T ] [ -h help ] [ -c ] [ -v verbosity ] [ -l live ] [ -r recurse ] [ -d depth ] tree
	

Service sub interface

	66-info [ -S ] [ -h help ] [ -c ] [ -v verbosity ] [ -l live ] [ -p n lines ] [ -r recurse ] [ -d depth ] service
	

66-info displays detailed information about a tree or a specific service depending on the options passed.

Main Options

Tree sub options

Service sub options

Tree output display example

The command 66-info -T boot as root user on the Obarun default system displays the following where boot is the tree used to properly boot the machine:

   
	               boot           
	Initialized: yes | Current: no
	Contains:       | Enabled: no
	├─(253,classic) tty12
	├─(0,oneshot) filesystem
	├─(0,oneshot) hostname
	├─(0,bundle) 00
	├─(0,oneshot) rofs-cgroups
	├─(0,oneshot) rofs-kernmod
	├─(421,longrun) udevd-udev
	├─(0,oneshot) udevd-udevadm
	├─(0,bundle) rofs-Udevd
	├─(0,oneshot) rofs-console
	├─(0,oneshot) rofs-hardclock
	├─(0,oneshot) checkfs-dmraid
	├─(0,oneshot) checkfs-btrfs
	├─(0,oneshot) checkfs-lvm
	├─(0,oneshot) checkfs-fscheck
	├─(0,bundle) rofs-Checkfs
	├─(0,oneshot) rofs-modules
	├─(0,oneshot) rofs-swap
	├─(0,oneshot) rofs-kernruntime
	├─(0,bundle) all-Rofs
	├─(0,oneshot) rwfs-fsrw
	├─(0,oneshot) rwfs-tmpdir
	├─(0,oneshot) rwfs-iptables
	├─(0,oneshot) rwfs-ip6tables
	├─(0,oneshot) rwfs-loopback
	├─(0,oneshot) rwfs-nofilesystem
	├─(0,oneshot) rwfs-localtime
	├─(0,oneshot) rwfs-random
	├─(0,oneshot) rwfs-logfiles
	├─(0,oneshot) rwfs-end
	├─(0,oneshot) rwfs-dmesglog
	├─(0,oneshot) rwfs-66local
	├─(0,oneshot) rwfs-tmpfiles
	├─(0,bundle) all-Rwfs
	├─(0,oneshot) boot-extra
	└─(0,bundle) All
	

By default the first service displayed is the first service started, the second one is the second started and so on.

The first line give you the name of the tree, Initialized tells if the tree was initialized with 66-init tool, Current tells if the tree is the current one or not—see 66-tree -c and Enabled reveals the state of the tree—see 66-tree -E. For each service the first number found between '()' bracket is the corresponding pid of the service, the type of the service is shown next to it. Finally the name of the service is displayed.

By default the dependency graph is rendered in order of execution. In this example the 'bundle' All is the last finished service and 'classic' tty12 is the first one executed. You can reverse the rendered order with the -r option.

Service output display example

The command sudo 66-info -S -d3 00 displays the following where 00 is the name of the service:

                       00            
	on tree : boot
	status : nothing to display
	type : bundle
	description : mount filesystem and set the hostname
	source : /etc/66/service/boot/
	run at : /run/66/tree/0/boot/servicedirs/00
                   contents         
	├─(0,oneshot) filesystem
	└─(0,oneshot) hostname


	

Let's take another example, the command sudo 66-info -S -p5 ntpd displays the following:

 
                       ntpd           
	on tree : root
	status : up (pid 786) 2380 seconds
	type : classic
	description : ntpd daemon
	source : /etc/66/service/
	run at : /run/66/scandir/0/ntpd
                   dependencies       
	└─(785,classic) ntpd-log
				 scripts          
	start script : foreground { mkdir -p  -m 0755 ${RUNDIR} } 
	execl-cmdline -s { ntpd ${CMD_ARGS} } 
                  environment        
	!RUNDIR=/run/openntpd
	!CMD_ARGS=-d -s
                    logger          
	logger associated : ntpd-log
	log destination : /var/log/66/ntpd 

	2019-03-18 06:50:21.749572500  adjtimex returns frequency of 0.000000ppm
	2019-03-18 06:50:21.764241500  ntp engine ready
	2019-03-18 06:50:21.847440500  adjtimex adjusted frequency by 16.428986ppm
	2019-03-18 06:50:21.847479500  set local clock to Mon Mar 18 06:50:21 +11 2019 (offset 0.000000s)

	

In our case :

Note: 66-info use color to output the informations, the previous examples do not reflect the veritable output concerning the colors.