Documentation ¶
Overview ¶
Package service defines a service unit type
Index ¶
Constants ¶
View Source
const DEFAULT_TYPE = "simple"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Definition ¶
type Definition struct { unit.Definition Service struct { Type string ExecStart, ExecStop, ExecReload string //Restart string //RestartSec int RemainAfterExit bool WorkingDirectory string } }
Service unit definition
type Unit ¶
type Unit struct { Definition *exec.Cmd }
Service unit
func (*Unit) Active ¶
func (sv *Unit) Active() unit.Activation
Active reports activation status of a service
Click to show internal directories.
Click to hide internal directories.