Difference between revisions of "Rc-status"

From GhostBSD Wiki
Jump to: navigation, search
(Created page with "{{welcome}} ==Introduction== The '''rc-status''' helper will print all currently active runlevels and the state of services in them. All runlevels are represented as folder...")
(No difference)

Revision as of 04:39, 13 April 2020

Welcome to Icon Disti GhostBSD.png Rc-status.

Introduction

The rc-status helper will print all currently active runlevels and the state of services in them.

All runlevels are represented as folders in /etc/runlevels/ with symlinks to the actual service scripts.
All services must reside in the /etc/init.d or /usr/local/etc/init.d directories. They must also conform to the OpenRC runscript standard.

Example for Rc-status

If you run

# rc-status

you will see which services are running:

Runlevel: default

dbus                                                  [  started 00:06:23 (0) ]
webcamd                                                           [  started  ]
moused                                                            [  started  ]
lightdm                                                           [  started  ]
avahi-daemon                                                      [  started  ]
vboxnet                                                           [  started  ]
netmount                                                          [  started  ]
devfs                                                             [  started  ]
ntpd                                                  [  started 00:06:20 (0) ]
cupsd                                                 [  started 00:06:21 (0) ]
local                                                             [  started  ]
avahi-dnsconfd                                                    [  started  ]
hald                                                              [  started  ]

Dynamic Runlevel: hotplugged

moused.ums0                                                       [  started  ]
webcamd.ugen0.4                                                   [  started  ]

Dynamic Runlevel: needed/wanted

tmp                                                               [  started  ]
cleartmp                                                          [  started  ]
var                                                               [  started  ]
cleanvar                                                          [  started  ]
ldconfig                                                          [  started  ]
ntpdate                                                           [  started  ]

Dynamic Runlevel: manual