Skip to content

This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!


OpenRC

OpenRC is a dependency based init system for Unix like systems that maintains compatibility with the system provided init system, normally located in /sbin/init. OpenRC is maintained by the Gentoo developers and is developed for Gentoo, but it is designed to be used in other Linux distributions and BSD systems. By default, OpenRC is invoked by SysVinit.

Reference(s)

Table of contents

TODO


Services

  • Start the service_name service:

    # rc-service service_name start
    

  • Stop the service_name service:

    # rc-service service_name stop
    

  • Restart the service_name service:

    # rc-service service_name restart
    

  • Reload service_name configuration without stopping the service_name service:

    # rc-service service_name reload
    

  • Check the service_name service status:

    # rc-service service_name status
    

  • Enable the service_name service on system boot:

    # rc-update add service_name
    

  • Disable the service_name service on system boot:

    # rc-update del service_name
    

  • Check if the service_name service is enable or disable on system boot:

    # rc-update -v | grep service_name
    


Run levels

TODO


If this cheat sheet has been useful to you, then please consider leaving a star here.