Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
Name string
Description string
Command string
Args []string
After []string // Services this depends on
Type string // "oneshot" or "daemon"
Restart string // "always", "on-failure", "never"
Environment map[string]string
TTY string // TTY device path (e.g., "/dev/tty1"), empty for init's stdio
// Runtime state
Process *os.Process
Started bool
Failed bool
Retries int // Number of consecutive restart attempts after failure
}
Service represents a service configuration.
Click to show internal directories.
Click to hide internal directories.