System Services Library
The system services library offers an API to interact with system services, allowing the user to perform typical operations like querying the services, starting or stopping them, etc.
The set of classes which are included in this library can be divided into:
- A high level API which offers some abstractions on top of Systemd.
- A low level one to talk closely to Systemd units (including services and sockets).
Additionally, a widget that can be used in YaST modules (like yast2-dns-server) is included.
High Level API
The high level API is composed by these classes:
dbus) from a high level point of view. Systemd concepts like units or sockets are abstracted by this class.
: represents a service (like
yast2-iscsi-client. This class offers basically the same API than .
: groups a set of related services that might be handled together.
Think, for instance, about
Low Level API
The low level API can be more convenient in some situations and it is basically composed of a set of classes that map to Systemd concepts:, , and .
Additionally to the classes to interact with system services, this library offers a widget which
allows the user to decide how (and when) a service should be started. It is meant to be used by
modules which configure a given service (like
Seefor the widget documentation and for the CWM wrapper.