mirror of
https://github.com/EnumeratedDev/enit.git
synced 2026-09-16 02:26:11 +00:00
Move service status functionality to esvm
This commit is contained in:
@@ -22,6 +22,15 @@ const (
|
||||
EnitServiceCompleted
|
||||
)
|
||||
|
||||
var EnitServiceStateNames map[EnitServiceState]string = map[EnitServiceState]string{
|
||||
EnitServiceUnknown: "unknown",
|
||||
EnitServiceUnloaded: "unloaded",
|
||||
EnitServiceRunning: "running",
|
||||
EnitServiceStopped: "stopped",
|
||||
EnitServiceCrashed: "crashed",
|
||||
EnitServiceCompleted: "completed",
|
||||
}
|
||||
|
||||
type EnitService struct {
|
||||
Name string `yaml:"name"`
|
||||
Description string `yaml:"description,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user