Editing OpenRC
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 144: | Line 144: | ||
All runlevels are represented as folders in ''/etc/runlevels/'' with symlinks to the actual service scripts.<br/> | All runlevels are represented as folders in ''/etc/runlevels/'' with symlinks to the actual service scripts.<br/> | ||
− | All services must reside in the '''/etc/[[Init.d|init.d]]''' or | + | All services must reside in the '''/etc/[[Init.d|init.d]]''' or ''/usr/local/etc/init.d'' directories. They must also conform to the OpenRC runscript standard. |
− | Calling | + | Calling OpenRC with an argument (openrc default) will switch to that runlevel; this will start and stop services as needed. |
Managing runlevels is usually done through the '''[[rc-update]]''' helper, but could of course be done by hand if desired. e.g. ''rc-update add foo default'' - add foo to the default runlevel '''Note:''' This will not auto-start foo! You'd still have to trigger rc or run the service script by hand. | Managing runlevels is usually done through the '''[[rc-update]]''' helper, but could of course be done by hand if desired. e.g. ''rc-update add foo default'' - add foo to the default runlevel '''Note:''' This will not auto-start foo! You'd still have to trigger rc or run the service script by hand. |