feat: create standalone native fnOS repository
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package nginx
|
||||
|
||||
// ReadPID reads a PID from the given pid file.
|
||||
func ReadPID(path string) (int, error) {
|
||||
return readPIDFile(path)
|
||||
}
|
||||
|
||||
// IsPIDAlive reports whether the process with the given PID is running.
|
||||
func IsPIDAlive(pid int) bool {
|
||||
return isPIDAlive(pid)
|
||||
}
|
||||
Reference in New Issue
Block a user