openrc

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRunlevel = "default"

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status string
const (
	StatusStopping Status = "stopping"

	StatusStarting Status = "starting"

	StatusInactive Status = "inactive"

	StatusCrashed Status = "crashed"

	StatusStarted Status = "started"

	StatusStopped Status = "stopped"
)

func StatusFromExitCode

func StatusFromExitCode(exitCode int) (Status, error)

StatusFromExitCode returns the Status of an OpenRC service from the exit code returned from an OpenRC service script `rc-service [name] status`. Reference: https://github.com/OpenRC/openrc/blob/63db2d99e730547339d1bdd28e8437999c380cae/sh/openrc-run.sh.in#L125

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL