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...")
 
Line 1: Line 1:
 
{{welcome}}
 
{{welcome}}
 
+
{{Navbar OpenRC}}
 
==Introduction==
 
==Introduction==
  

Revision as of 04:41, 13 April 2020

Welcome to Icon Disti GhostBSD.png Rc-status.
OpenRC
Scripts
/etc/rc
rc - shell
/etc/rc.devd
The generic hook into OpenRC.
/sbin/rcorder
Ordering rc-scripts
/etc/init.d
Scripts to run OpenRC
/usr/local/etc/init.d
Scripts to run OpenRC
/etc/rc.d
Scripts automatically executed at boot and shutdown
/usr/local/etc/rc.d
Special scripts
Configuration
/etc/devd.conf
Configuration file for devd(8)
/etc/conf.d
Initscript Configuration Files
/etc/rc.conf.d
Smaller configuration files
/etc/defaults/rc.conf
Specifies the default settings for all the available options.
/etc/rc.conf
The global OpenRC configuration file
/etc/rc.conf.ghostbsd
GhostBSD specific configurations
Tools/Helper
/usr/sbin/sysrc
Safely edit system rc files
/bin/rc-status
Shows which services are running
/sbin/rc-update
Add or delete services
/sbin/rc-service
Locate and run an OpenRC service
Back to the Icon Disti GhostBSD.pngSystem

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