Sebastiaan van Stijn
|
7493debe26
pkg/pidfile: implement Read()
|
2 years ago |
Sebastiaan van Stijn
|
7d3e1ad943
pkg/pidfile: Write(): don't automatically create parent directories
|
2 years ago |
Sebastiaan van Stijn
|
81945da0ac
pkg/pidfile: Write(): take pid as argument
|
2 years ago |
Sebastiaan van Stijn
|
55d15e9d05
pkg/pidfile, pkg/process: use single implementation for process alive
|
2 years ago |
Sebastiaan van Stijn
|
43d6eb7173
pkg/pidfile: remove PIDFile type, rename New() to Write()
|
2 years ago |
Sebastiaan van Stijn
|
dd8983f96c
pkg/pidfile: reduce cyclomatic complexity, and small optimisation
|
2 years ago |
Sebastiaan van Stijn
|
4917bcc039
pkg/pidfile: don't ignore all errors when reading file
|
2 years ago |
Sebastiaan van Stijn
|
3ce2a7d026
pkg/pidfile: pkg/pidfile: use strconv instead of fmt.Sprintf(), and unconvert
|
2 years ago |
Eng Zer Jun
|
c55a4ac779
refactor: move from io/ioutil to io and os package
|
3 years ago |
Sebastiaan van Stijn
|
e554ab5589
Allow system.MkDirAll() to be used as drop-in for os.MkDirAll()
|
6 years ago |
Daniel Nephin
|
4f0d95fa6e
Add canonical import comment
|
7 years ago |
John Howard
|
ed10ac6ee9
LCOW: Create layer folders with correct ACL
|
8 years ago |
unclejack
|
418e612383
pkg: return directly without ifs where possible
|
8 years ago |
John Howard
|
745f3ece53
mkdirall on the PID file path
|
8 years ago |
John Starks
|
9e5b93565c
Windows: don't overwrite PID file if process exists
|
9 years ago |
mingqing
|
6a033fa03e
fix pidfile, pid is num use '/proc + string(pid)' can't found it
|
9 years ago |
Vincent Demeester
|
18c7c67308
Lint on pkg/* packages
|
10 years ago |
Lei Jitang
|
60e5c273cf
Remove redundant log in pkg/pidfile/pidfile.go
|
10 years ago |
Antonio Murdaca
|
531f4122bd
Remove engine mechanism
|
10 years ago |
Rick Wieman
|
772833274f
Moved pidfile from utils to pkg
|
10 years ago |