Documentation
¶
Index ¶
- func IsProcessRunning(pid int) bool
- func PathFromEnv(envKey string, defaultFileName string) string
- type Controller
- func (c Controller) LoadRunningPID() (int, bool)
- func (c Controller) ReadPID() (int, error)
- func (c Controller) RemovePIDFile() error
- func (c Controller) StartBackground(subcommand string, subcommandArgs []string, logPath string) (int, error)
- func (c Controller) StartBackgroundCommand(executablePath string, commandArgs []string, logPath string) (int, error)
- func (c Controller) Stop(waitAttempts int, waitDelay time.Duration) (int, bool, error)
- func (c Controller) WritePID(pid int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsProcessRunning ¶
func PathFromEnv ¶
Types ¶
type Controller ¶
func New ¶
func New(pidFilePath string, scanMarker string) Controller
func (Controller) LoadRunningPID ¶
func (c Controller) LoadRunningPID() (int, bool)
func (Controller) ReadPID ¶
func (c Controller) ReadPID() (int, error)
func (Controller) RemovePIDFile ¶
func (c Controller) RemovePIDFile() error
func (Controller) StartBackground ¶
func (Controller) StartBackgroundCommand ¶
func (Controller) WritePID ¶
func (c Controller) WritePID(pid int) error
Click to show internal directories.
Click to hide internal directories.