66

Software

obarun.org

status

This command displays information about service.

Interface

status [ -h ] [ -n ] [ -o name,intree,status,... ] [ -g ] [ -d depth ] [ -r ] [ -p nline ] service

By default the dependency graph is rendered in the start order of execution. You can reverse the rendered order, meaning the stop execution, with the -r option.

Without specifying the -o, all fields are displayed.

Options

Valid fields for -o options

Usage examples

Displays all information of service foo

66 status foo

Only displays the field name and status of service foo

66 status -o name,status foo

Also, do not display the name of the field name and status of service foo

66 status -no name,status foo

Only displays the contents of the log file of the service foo

66 status -o logfile foo

Also, displays the last 100 lines of the log file of the service foo

66 status -o logfile -p100 foo

In a script you can do

#!/bin/sh

service="${1}"
type=$(66 status -no type ${service})

if [ ${type} = "classic" ]; then
    echo ${service} is a classic service
else if [ ${type} = "module" ]; then
    echo ${service} is a module service
else if [ ${type} = "oneshot" ]; then
    echo ${service} is a oneshot service
fi

Displays information of the service using the graph mode

66 status -g dbus

Name                  : dbus
Version               : 0.0.1
In tree               : global
Status                : enabled, up (pid 731) 34829 seconds, ready 34829 seconds
Type                  : classic
Description           : dbus system daemon
Part of               : None
Notify                : 4
Max death             : 3
Earlier               : 0
Source                : /etc/66/service/dbus
Live                  : /run/66/scandir/0/dbus
Dependencies          : \
                        └─dbus-log (pid=723, state=Enabled, type=classic, tree=global)
Required by           : \
                        ├─networkmanager (pid=747, state=Enabled, type=classic, tree=global)
                        ├─boot-user@oblive (pid=up, state=Enabled, type=module, tree=session)
                        └─consolekit (pid=746, state=Enabled, type=classic, tree=global)
Contents              : \
                        └─None
Optional dependencies : None
Start script          :
                        #!/usr/bin/execlineb -P
                        fdmove -c 2 1
                        execl-envfile -v4 /etc/66/conf/dbus/version
                            execl-toc -S ${socket_name} -m 0755
                            foreground {
                                execl-toc -d /var/lib/dbus
                                dbus-uuidgen --ensure
                            }
                            execl-cmdline -s { dbus-daemon ${cmd_args} }
Stop script           :
                        #!/usr/bin/execlineb -P
                        fdmove -c 2 1
                        execl-envfile -v4 /etc/66/conf/dbus/version
                         s6-rmrf ${socket_name}
Environment source    : /etc/66/conf/dbus/0.0.1
Environment file      : environment variables from: /etc/66/conf/dbus/0.0.1/.dbus
                        cmd_args=!--system --print-pid=4 --nofork --nopidfile --address=unix:path=${socket_name}
                        socket_name=!/run/dbus/system_bus_socket

                        environment variables from: /etc/66/conf/dbus/0.0.1/dbus
                        cmd_args=!--system --print-pid=4 --nofork --nopidfile --address=unix:path=${socket_name}
                        socket_name=!/run/dbus/system_bus_socket

Log name              : dbus-log
Log destination       : /var/log/66/dbus
Log file              :
dbus-daemon[731]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.2' (uid=0 pid=747 comm="NetworkManager -d") (using servicehelper)
dbus-daemon[731]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
dbus-daemon[731]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.2' (uid=0 pid=747 comm="NetworkManager -d") (using servicehelper)
dbus-daemon[731]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
dbus-daemon[731]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.2' (uid=0 pid=747 comm="NetworkManager -d") (using servicehelper)
dbus-daemon[731]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
dbus-daemon[731]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.2' (uid=0 pid=747 comm="NetworkManager -d") (using servicehelper)
dbus-daemon[731]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
dbus-daemon[731]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.2' (uid=0 pid=747 comm="NetworkManager -d") (using servicehelper)
dbus-daemon[731]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
dbus-daemon[731]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.2' (uid=0 pid=747 comm="NetworkManager -d") (using servicehelper)
dbus-daemon[731]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
dbus-daemon[731]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.2' (uid=0 pid=747 comm="NetworkManager -d") (using servicehelper)
dbus-daemon[731]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
dbus-daemon[731]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.2' (uid=0 pid=747 comm="NetworkManager -d") (using servicehelper)
dbus-daemon[731]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
dbus-daemon[731]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.2' (uid=0 pid=747 comm="NetworkManager -d") (using servicehelper)
dbus-daemon[731]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
dbus-daemon[731]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.2' (uid=0 pid=747 comm="NetworkManager -d") (using servicehelper)
dbus-daemon[731]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'