Module sysvinit

Ensure that a service managed by sysvinit is started or stopped.

Tested on OpenWRT only.

Info:

Functions

started(None)
Start a service.

Promiser:

    service

Aliases:

    present

Parameters:

  • None

Usage:

    sysvinit.started("ntpd")()
stopped(None)
Stop a service.

Promiser:

    service

Aliases:

    absent

Parameters:

  • None

Usage:

    sysvinit.stopped("telnetd")()
restart(None)
Restart a service.

Promiser:

    service

Parameters:

  • None

Usage:

    sysvinit.restart("ntpd")()
reload(None)
Reload a service.

Promiser:

    service

Note:

    OpenWRT sysvinit can not detect reload failures

Parameters:

  • None

Usage:

    sysvinit.reload("ntpd")()
enabled(None)
Enable a service

Promiser:

    service

Parameters:

  • None

Usage:

    sysvinit.enabled("ntpd")()
disabled(None)
Disable a service.

Promiser:

    service

Parameters:

  • None

Usage:

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