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
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BeforeStartFunc func() StartFunc = boot.Start )
View Source
var BeforeStopFunc func()
View Source
var DropFunc = boot.Drop
View Source
var GetConfigFunc = func() *Config { return &Config{ APPName: config.C.AppName(), ServerHost: config.Viper().GetString("server.host"), ServerPProfPort: config.Viper().GetString("server.pprof_port"), } }
View Source
var RootCmd = &cobra.Command{ Use: util.AppName, }
Functions ¶
func FindPIDWithPort ¶
func FindPidSliceByProcessName ¶
FindPidSliceByProcessName get pid list
func KillProcessByPID ¶
func KillProcessByPID(pid string)
func KillProcessWithPort ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.