Services

Clacks D-Bus System Service Plugin

Allows to manage client services and the runlevel.

class clacks.dbus.plugins.services.main.DBusUnixServiceHandler

The clacks-dbus system-service-plugin allows to manage services running on the client side. Services can be maintained by executing actions for them, e.g. start, restart, stop and so on, whatever action the service supports.

The status of all services can be listed and additionally the runlevel can be read and set to another level.

>>> clientDispatch("49cb1287-db4b-4ddf-bc28-5f4743eac594", "dbus_service_get_runlevel")
>>> 2
>>> clientDispatch("49cb1287-db4b-4ddf-bc28-5f4743eac594", "dbus_service_set_runlevel", 2)
get_service(name)

Returns status information for the given service.

get_services()

Returns status information for all services.

service_action(service, action)

Executes a service action

service_get_runlevel()

Returns the current runlevel of the clacks-client.

service_set_runlevel(level)

Sets a new runlevel for the clacks-client

exception clacks.dbus.plugins.services.main.NoSuchServiceException

Exception thrown for unknown services

exception clacks.dbus.plugins.services.main.ServiceException

Exception thrown for general service failures.