Documentation ¶
Index ¶
- func Install(plist Plist, log logger.Logger) (err error)
- func Restart(label string, log logger.Logger) error
- func ShowServices(filters []string, name string, log logger.Logger) (err error)
- func ShowStatus(label string, log logger.Logger) error
- func Start(label string, log logger.Logger) error
- func Stop(label string, log logger.Logger) error
- func Uninstall(label string, log logger.Logger) error
- type Plist
- type Service
- func (s Service) Install(p Plist) (err error)
- func (s Service) Label() string
- func (s Service) Load(restart bool) error
- func (s *Service) SetLogger(log logger.Logger)
- func (s Service) Status() (*ServiceStatus, error)
- func (s Service) StatusDescription() string
- func (s Service) Uninstall() (err error)
- func (s Service) Unload() error
- type ServiceStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowServices ¶
ShowServices outputs keybase service info.
func ShowStatus ¶
ShowStatus shows status info for a service
Types ¶
type Plist ¶
type Plist struct {
// contains filtered or unexported fields
}
Plist defines a launchd plist
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defines a service
func ListServices ¶
ListServices will return service with label starts with a filter string.
func (Service) Status ¶
func (s Service) Status() (*ServiceStatus, error)
Status returns service status
func (Service) StatusDescription ¶
StatusDescription returns the service status description
type ServiceStatus ¶
type ServiceStatus struct {
// contains filtered or unexported fields
}
ServiceStatus defines status for a service
func (ServiceStatus) Description ¶
func (s ServiceStatus) Description() string
Description returns service status info
func (ServiceStatus) IsRunning ¶
func (s ServiceStatus) IsRunning() bool
IsRunning is true if the service is running (with a pid)
func (ServiceStatus) LastExitStatus ¶
func (s ServiceStatus) LastExitStatus() string
LastExitStatus will be blank if pid > 0, or a number "123"
func (ServiceStatus) Pid ¶
func (s ServiceStatus) Pid() string
Pid for status (empty string if not running)
Click to show internal directories.
Click to hide internal directories.