RingoJS

Module ringo/daemon

The daemon control script invoked by the init script.

This module interprets the first command line argument as module ID, load the module and try to invoke the life cycle functions on it.

For HTTP servers it is generally more convenient to directly use ringo/httpserver which will create a new server instance and pass it to as argument to the application life cycle functions.

Functions


destroy ()

Called when the daemon is destroyed.


init ()

Called when the daemon instance is created.

This function can be run with superuser id to perform privileged actions before the daemon is started.


start ()

Called when the daemon instance is started.


stop ()

Called when the daemon is stopped.