
functions
files
intro
|
|
Configuration of inetd |
modules/Inetd.ycp |
| Data for configuration of Inetd, input and output functions. |
|
|
|
Representation of the configuration of Inetd.
Input and output routines.
Imports
- Directory
- Mode
- Progress
- Report
- Runlevel
- Summary
Functions
|
|
|
|
global Read (block abort) -> boolean
|
|
Read all Inetd settings from the SCR
- Parameters:
|
abort |
A block that can be called by Read to find
out whether abort is requested. Returns true if abort
was pressed. |
- Return value:
|
global ReadFile () -> void
|
|
Read inetd.conf file
|
global WriteOnly () -> boolean
|
|
Changes configuration only, services are not started
|
global Write (block abort) -> boolean
|
|
Update the SCR according to Inetd settings
- Parameters:
|
abort |
A block that can be called by Write to find
out whether abort is requested. Returns true if abort
was pressed. |
- Return value:
|
global Import (map settings) -> boolean
|
|
Get all Inetd settings from the first parameter
(For use by autoinstallation.)
- Parameters:
|
settings |
The YCP structure to be imported. |
- Return value:
- Example:
-
settings=$["start_inetd":true,
"services":[
$[
"service":"telnet",
"status":"enable"
]
] |
|
local FindService (string service) -> map
|
|
Find a service in the parsed file
- Parameters:
- Return value:
|
global ChangeServiceStatus (string service, string status) -> boolean
|
|
Change service status
- Parameters:
|
service |
service to change |
|
status |
new status |
- Return value:
Dump the Inetd settings to a single map
(For use by autoinstallation.)
- Return value:
|
|
Dumped settings (later acceptable by Import ()) |
|
global Summary () -> string
|
|
Build a textual summary that can be used e.g. in inst_hw_config () or
something similar.
- Return value:
|
|
Summary of the configuration. |
|
global Set (map settings) -> void
|
|
Build a textual summary that can be used e.g. in inst_hw_config () or
something similar.
- Parameters:
- Return value:
|
|
Summary of the configuration. |
|
global addLine (map new_line, integer line_number) -> void
|
|
add a line in DB
- Parameters:
|
global changeLine (map new_line, integer line_number)
|
|
Change a line in DB
- Parameters:
- Return value:
|
global convertScrLineToInternal (map line, string service, symbol status, integer line_number)
|
|
Convert SCR-DB Line to internal DB line
- Parameters:
|
line |
|
|
service |
|
|
status |
|
|
line_number |
|
- Return value:
|
global makeAllInactive ()
|
|
Make all services inactive
- Return value:
|
global convertInternalToList ()
|
|
Convert Internal Map into the Format, the list widget needs
- Return value:
Write inetd_conf to disk
- Convert internal DB into SCR format
- write
- Return value:
|