This command displays information about services.
66-inservice [ -h ] [ -v verbosity ] [ -c ] [ -n ] [ -o name,intree,status,... ] [ -g ] [ -d depth ] [ -r ] [ -t tree ] [ -p nline ] service
The command 66-inservice 00 run as root user on Obarun's default system, displays the following, where 00 is a service contained in the tree boot:
Name : 00 In tree : boot Status : enabled, nothing to display Type : bundle Description : Set the hostname and mount filesystem Source : %%service_system%%/boot/mount/00 Live : %%livedir%%/tree/0/boot/servicedirs/00 Dependencies : system-hostname mount-run populate-run mount-tmp populate-tmp mount-proc mount-sys populate-sys mount-dev mount-pts mount-shm populate-dev mount-cgroups Optional dependencies : None External dependencies : None Start script : None Stop script : None Environment source : None Environment file : None Log name : None Log destination : None Log file : None
By default the dependency graph is rendered in the order of execution. In this example the 'oneshot' system-hostname is the first executed service and 'oneshot' mount-cgroups is the last one when it finishes. You can reverse the rendered order with the -r option.
You can display the status and 'depends on' field and only these fields of a service using the command 66-inservice -o status,depends -g connmand where the dependency list is diplayed as a graph:
Status : enabled, up (pid 938) 34652 seconds Dependencies : / ├─(933,Enabled,longrun) dbus └─(929,Enabled,longrun) connmand-log
You can display the status,log file and log destination and only these fields of a service using the command 66-inservice -o status,logdst,logfile -g dbus:
Status : enabled, up (pid 933) 34852 seconds, ready 34852 seconds Log destination : %%system_log%%/dbus Log file : 2019-10-03 16:16:05.246991500 dbus-daemon[933]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.3" (uid=1000 pid=1226 comm="connman-gtk --tray ") interface="net.connman.Technology" member="Scan" error name="(unset)" requested_reply="0" destination=":1.0" (uid=0 pid=938 comm="connmand -n --nobacktrace --nodnsproxy ") 2019-10-03 16:16:35.256146500 dbus-daemon[933]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.3" (uid=1000 pid=1226 comm="connman-gtk --tray ") interface="net.connman.Technology" member="Scan" error name="(unset)" requested_reply="0" destination=":1.0" (uid=0 pid=938 comm="connmand -n --nobacktrace --nodnsproxy ")