Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
api:rc [2017/12/08 21:44]
payonel
api:rc [2018/09/06 17:53]
payonel
Line 1: Line 1:
-RC API +======RC API======
----------+
  
-The RC API allows the creation and management of services: programs that run in the background and provide various functionality. Daemons in UNIX parlance.+**This page is in progress**
  
-This API is incompletesee related ​[github issue](https://github.com/​MightyPirates/​OpenComputers/​issues/​2667)+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 executionas documented ​[[tutorial:autorun_options|here]].
  
-**TodoFill in the info regarding what each of these functions do.**+There are two components of the rc system; [[api:rc#RC Instances|rc instances]] and [[api:​rc#​The RC Controller|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
 +------------
 {{page>​api:​contents&​noheader&​noeditbutton&​nouser&​nofooter}} {{page>​api:​contents&​noheader&​noeditbutton&​nouser&​nofooter}}