Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.94 KB

service.rst

File metadata and controls

54 lines (40 loc) · 1.94 KB

service --- Services

service

A service is as a background task. A service is either running or stopped.

Debug file system commands

Three debug file system commands is available, all located in the directory oam/service/.

Command Description

list

List all registered services.

start <service>

Start given service.

stop <service>

Stop given service.

Example output from the shell:

$ oam/service/list
NAME                   STATUS
http_server            running
ftp_server             stopped
network_manager        running
$ oam/service/start ftp_server
$ oam/service/stop http_server
$ oam/service/list
NAME                   STATE
http_server            stopped
ftp_server             running
network_manager        running

Source code: src/oam/service.h, src/oam/service.c

Test code: tst/oam/service/main.c

Test coverage: src/oam/service.c


oam/service.h