Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveArgsWithName ¶
RemoveArgsWithName removes all args from the list where there is the word name, it return new slice
func RunCommand ¶
RunCommand runs the command cmd with params, returns an error if any
Types ¶
type PidFile ¶
type PidFile struct {
// contains filtered or unexported fields
}
func NewPidFile ¶
NewPidFile creates new PidFile struct by the file name
func (*PidFile) Interrupt ¶
Interrupt tries to read the pid file and interrupt the process by its Pid, if possible
func (*PidFile) Lock ¶
Lock tries to acquire the pid file and write the current process Id there. Returns true, if the operaion was successful.
Click to show internal directories.
Click to hide internal directories.