mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-24 23:09:40 +08:00
优化停服
This commit is contained in:
@@ -117,7 +117,7 @@ func setConfigPath(val interface{}) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getRunProcessPid(nodeId string) (int, error) {
|
func getRunProcessPid(nodeId string) (int, error) {
|
||||||
f, err := os.OpenFile(fmt.Sprintf("%s_%d.pid", os.Args[0], nodeId), os.O_RDONLY, 0600)
|
f, err := os.OpenFile(fmt.Sprintf("%s_%s.pid", os.Args[0], nodeId), os.O_RDONLY, 0600)
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
|
|||||||
Reference in New Issue
Block a user