YaST2 Developers Documentation: Configuration of inetd



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:
True on success

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:
True on success

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:
True on success
Example:
  settings=$["start_inetd":true,
     "services":[
                 $[
		 "service":"telnet",
		 "status":"enable"
		 ]
     ]

local FindService (string service) -> map

Find a service in the parsed file

Parameters:
service
Return value:
: service map

global ChangeServiceStatus (string service, string status) -> boolean

Change service status

Parameters:
service service to change
status new status
Return value:
true on success

global Export () -> map

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:
settings
Return value:
Summary of the configuration.

global addLine (map new_line, integer line_number) -> void

add a line in DB

Parameters:
new_line
line_number

global changeLine (map new_line, integer line_number)

Change a line in DB

Parameters:
new_line
line_number
Return value:
internal-DB map

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:
internal-DB map

global makeAllInactive ()

Make all services inactive

Return value:
List-DB map

global convertInternalToList ()

Convert Internal Map into the Format, the list widget needs

Return value:
List-DB map

global WriteInetdConf ()

Write inetd_conf to disk - Convert internal DB into SCR format - write

Return value:
-

YaST2 Developers Documentation