Module systemd

  • License: ASL 2.0

  • Version: 1.0.1

Typedefs

typedef systemd::service_state
  • Base type string

  • Type constraint (self in ['running', 'stopped'])

Entities

entity systemd::Service

Parents: std::PurgeableResource

Manage a service on a host.

attribute string name

The name of the service to manage

attribute systemd::service_state state

The desired state of the service. Valid values are ‘running’ or ‘stopped’

attribute bool onboot

Should the service start on boot.

attribute bool send_event=true
relation mitogen::Context via [0:1]

Mitogen context dedicated to this resource. If not specified, defaults to the one of the host.

relation std::Host host [1]

Relation to the host of the service.

relation systemd::Unit unit [0:1]

Unit file of the service

relation systemd::Timer timer [0:1]

Timer file of the service

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity systemd::Timer

Parents: std::Entity

Create systemd timer unit

attribute string name

Timer name

attribute string content

Unit file content

attribute bool enable

Enable timer

attribute bool purged=false
relation std::Host host [1]

Relation to the host of the service timer file.

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity systemd::Unit

Parents: std::Entity

Create systemd service unit file

attribute string name

Service name

attribute string content

Unit file content

attribute bool purged=false
relation std::Host host [1]

Relation to the host of the service unit file.

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

Implementations

implementation systemd::serviceHost
implementation systemd::timerFile
implementation systemd::unitFile

Resources

class systemd.Service

This class represents a service on a system.

Handlers

class systemd.SystemdService

A handler for services on systems that use systemd