Documentation ¶
Index ¶
- Variables
- func Execute()
- func FindPIDWithPort(port uint32) string
- func FindPidSliceByProcessName(name string) []string
- func KillProcess(name string) (err error)
- func KillProcessByPID(pid string)
- func KillProcessWithPort(port uint32) (err error)
- func ProcessIsRunning(name string) bool
- func StdExec(script string) *exec.Cmd
Constants ¶
This section is empty.
Variables ¶
View Source
var BeforeStartFunc func()
View Source
var BeforeStopFunc func()
View Source
var RootCmd = &cobra.Command{ Use: util.AppName, }
View Source
var StartFunc func()
Functions ¶
func FindPIDWithPort ¶
func FindPidSliceByProcessName ¶
FindPidSliceByProcessName get a pid list
func KillProcessByPID ¶
func KillProcessByPID(pid string)
func KillProcessWithPort ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.