**This is an old revision of the document!**

RC API

This page is in progress

The rc system automates running scripts as services and is generally used for starting scripts when the system is booting up. It is one tool of many provided by OpenOS for automatic script execution, as documented here.

There are two components of the rc system; rc instances and the rc controller.

RC Instances

RC instances are lua modules built by the user and managed by the rc controller. We will cover how to build your own rc instance. “Enabled” rc instances are those configured to start at boot. An rc instance can also be started and stopped individually, without having to enable or disable it.

Instance Methods

lua

The RC Controller

The rc controller has a command line interface you access with the rc command in the shell (/bin/rc.lua). It is maintains which rc instances are running and which are configured to start at boot time. Unlike the other automatic start options autorun and .shrc, enabled rc instances only automatically start once per OpenOS boot.

Command Line Interface

rc

Contents