Module systemd

Ensure that a service managed by systemd-systemctl is started or stopped.

Info:

Functions

started(None)
Start a service.

Promiser:

    service

Aliases:

    present

Parameters:

  • None

Usage:

    systemd.started("rsyncd")()
stopped(None)
Stop a service.

Promiser:

    service

Aliases:

    absent

Parameters:

  • None

Usage:

    systemd.stopped("rsyncd")()
restart(None)
Restart a service.

Promiser:

    service

Note:

    skips restart if service is not yet active.

Parameters:

  • None

Usage:

    systemd.restart("rsyncd")()
reload(None)
Reload a service.

Promiser:

    service

Parameters:

  • None

Usage:

    systemd.reload("sshd")()
enabled(None)
Enable a service.

Promiser:

    service

Parameters:

  • None

Usage:

    systemd.enabled("rsyncd")()
disabled(None)
Disable a service.

Promiser:

    service

Parameters:

  • None

Usage:

    systemd.disabled("rsyncd")()
generated by LDoc 1.4.6 Last updated 2017-05-09 15:50:38