The depend function is used to declare dependencies to other services that would be done with LSB headers in sysvinit. ![]() Scripts are assumed to have start(), stop() and status() and the system uses variables already declared to create the default functions. Init scripts share similarities with scripts used in sysvinit, but offer several features to simplify their creation. By default, OpenRC uses a modified version of start-stop-daemon for daemon management. It exits once the scripts have been started. OpenRC works by scanning the runlevels, building a dependency graph, then starting the needed service scripts. The core part of OpenRC handles dependency management and init script parsing. ![]() ![]() It is written in C and POSIX-compliant shell, making it usable on BSD and Linux systems. OpenRC is made up of several modular components, the main ones being an init (optional), the core dependency management system and a daemon supervisor (optional).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |