|
|
|
@ -5,28 +5,28 @@ |
|
|
|
|
package main |
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
|
"encoding/json" |
|
|
|
|
"flag" |
|
|
|
|
"fmt" |
|
|
|
|
"math" |
|
|
|
|
_ "net/http/pprof" |
|
|
|
|
"os" |
|
|
|
|
"os/signal" |
|
|
|
|
"syscall" |
|
|
|
|
"runtime/debug" |
|
|
|
|
"time" |
|
|
|
|
"reflect" |
|
|
|
|
"runtime" |
|
|
|
|
"math" |
|
|
|
|
_ "net/http/pprof" |
|
|
|
|
"strings" |
|
|
|
|
"runtime/debug" |
|
|
|
|
"strconv" |
|
|
|
|
"encoding/json" |
|
|
|
|
"reflect" |
|
|
|
|
"strings" |
|
|
|
|
"syscall" |
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
"pkg/libs/log" |
|
|
|
|
"redis-shake" |
|
|
|
|
"redis-shake/base" |
|
|
|
|
"redis-shake/common" |
|
|
|
|
"redis-shake/configure" |
|
|
|
|
"redis-shake/metric" |
|
|
|
|
"redis-shake" |
|
|
|
|
"redis-shake/base" |
|
|
|
|
"redis-shake/restful" |
|
|
|
|
"pkg/libs/log" |
|
|
|
|
|
|
|
|
|
"github.com/gugemichael/nimo4go" |
|
|
|
|
logRotate "gopkg.in/natefinch/lumberjack.v2" |
|
|
|
@ -83,7 +83,7 @@ func main() { |
|
|
|
|
utils.Welcome() |
|
|
|
|
utils.StartTime = fmt.Sprintf("%v", time.Now().Format(utils.GolangSecurityTime)) |
|
|
|
|
|
|
|
|
|
if err = utils.WritePidById(conf.Options.Id); err != nil { |
|
|
|
|
if err = utils.WritePidById(conf.Options.Id, conf.Options.PidPath); err != nil { |
|
|
|
|
crash(fmt.Sprintf("write pid failed. %v", err), -5) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|