Module openrc

Ensure that an OpenRC service is started or stopped.


This module can also restart and reload a service.
And add or remove a service from a particular runlevel.

Info:

Functions

started(None)
Start a service.

Promiser:

    service

Aliases:

    present

Parameters:

  • None

Usage:

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

Promiser:

    service

Aliases:

    absent

Parameters:

  • None

Usage:

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

Promiser:

    service

Parameters:

  • None

Usage:

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

Promiser:

    service

Parameters:

  • None

Usage:

    openrc.reload("sshd")()
add(runlevel)
Add a service to runlevel.

Promiser:

    service

Parameters:

  • runlevel runlevel to add to [REQUIRED] [DEFAULT: default]

Usage:

    openrc.add("rsyncd"){
        runlevel = "default"
    }
delete(runlevel)
Remove a service from a runlevel.

Promiser:

    service

Aliases:

    del

Parameters:

  • runlevel runlevel to remove from [REQUIRED] [DEFAULT: default]

Usage:

    openrc.delete("rsyncd"){
        runlevel = "default"
    }
generated by LDoc 1.4.6 Last updated 2017-05-09 15:50:38