Difference between revisions of "Rc.devd"
From GhostBSD Wiki
(→Tasks) |
(→Tasks) |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
==Introduction== | ==Introduction== | ||
− | * Rc.devd is an shell script and its function is the generic hook into OpenRC. | + | * Rc.devd is an shell script (#!/bin/sh) and its function is the generic hook into OpenRC. |
==Tasks== | ==Tasks== | ||
Line 13: | Line 13: | ||
* Try and create an init script for network interfaces, set the variable: base="network.lo0" | * Try and create an init script for network interfaces, set the variable: base="network.lo0" | ||
* Run the init directories: | * Run the init directories: | ||
− | ** Run the directory '''/etc/init.d''' | + | ** Run the directory '''/etc/[[Init.d|init.d]]''' |
** Run the directory '''/usr/local/etc/init.d''' | ** Run the directory '''/usr/local/etc/init.d''' | ||
Latest revision as of 14:17, 18 March 2020
Welcome to Rc.devd. |
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 System |
Introduction[edit]
- Rc.devd is an shell script (#!/bin/sh) and its function is the generic hook into OpenRC.
Tasks[edit]
- It informs RC that we are in the background and hot-plugged.
- If there are additional arguments coming from devd, they will be captured.
- getmedia
- Try and create an init script for network interfaces, set the variable: base="network.lo0"
- Run the init directories:
- Run the directory /etc/init.d
- Run the directory /usr/local/etc/init.d