Documentation ¶
Index ¶
- Constants
- func Config(debug bool, logger *oslog.Logger)
- func Logger() *oslog.Logger
- func ProcessInfoNameImpl(pid int) string
- func Syslogger(procname string) *oslog.Logger
- type Daemon
- type PidFile
- type ProcessInfo
- func (id *ProcessInfo) FullPath() string
- func (id *ProcessInfo) IsCurrent() bool
- func (id *ProcessInfo) IsDaemon() bool
- func (id *ProcessInfo) IsForkOf(parent *ProcessInfo) bool
- func (id *ProcessInfo) Parent() *ProcessInfo
- func (id *ProcessInfo) Process() *os.Process
- func (id *ProcessInfo) RestartParent(updatePath string)
Constants ¶
View Source
const DEBUG = false
DEBUG flag
View Source
const Version = "1.7.0"
Version export
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProcessInfo ¶
ProcessInfo export
func NewProcessInfoCurrent ¶
func NewProcessInfoCurrent() *ProcessInfo
NewProcessInfoCurrent current
func (*ProcessInfo) IsDaemon ¶
func (id *ProcessInfo) IsDaemon() bool
IsDaemon determines if the current process qualifies as a daemon
func (*ProcessInfo) IsForkOf ¶
func (id *ProcessInfo) IsForkOf(parent *ProcessInfo) bool
IsForkOf export
func (*ProcessInfo) Process ¶
func (id *ProcessInfo) Process() *os.Process
Process returns *os.resolveProcess if the process is running, otherwise nil
func (*ProcessInfo) RestartParent ¶
func (id *ProcessInfo) RestartParent(updatePath string)
RestartParent export
Click to show internal directories.
Click to hide internal directories.