Documentation ¶
Index ¶
- Variables
- type SystemD
- func (sd *SystemD) AddDependentService(serviceName string, depName string) error
- func (sd *SystemD) Disable(serviceName string) error
- func (sd *SystemD) Enable(serviceName string) error
- func (sd *SystemD) RemoveDependentService(serviceName string, depName string) error
- func (sd *SystemD) Restart(serviceName string) error
- func (sd *SystemD) RestartEx(serviceName string, successStopRegex string, successStartRegex string) error
- func (sd *SystemD) Start(serviceName string) error
- func (sd *SystemD) StartEx(serviceName string, successRegex string) error
- func (sd *SystemD) Status(serviceName string) (bool, error)
- func (sd *SystemD) StatusEx(serviceName string, successRegex string) (bool, error)
- func (sd *SystemD) Stop(serviceName string) error
- func (sd *SystemD) StopEx(serviceName string, successRegex string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrSystemCtlFailed Systemctl command failed ErrSystemCtlFailed = errors.New("Systemctl command failed") )
Functions ¶
This section is empty.
Types ¶
type SystemD ¶
type SystemD struct {
// contains filtered or unexported fields
}
SystemD implementation for SystemD
func (*SystemD) AddDependentService ¶
AddDependentService to the service
func (*SystemD) RemoveDependentService ¶
RemoveDependentService to the service
func (*SystemD) RestartEx ¶
func (sd *SystemD) RestartEx(serviceName string, successStopRegex string, successStartRegex string) error
RestartEx the service
Click to show internal directories.
Click to hide internal directories.