Skip to content

Commit

Permalink
Adding proper comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekpandey14 committed Mar 8, 2017
1 parent 0e544bb commit ce83f61
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions command/server_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ func (c *ServerMembersCommand) Run(args []string) int {
if runop = c.mserverstatus(); runop != 0 {
return runop
}
//fmt.Println(mserverstatus)
return 0
}

Expand Down Expand Up @@ -187,14 +186,9 @@ func regionLeaders(client *api.Client, mem []*api.AgentMember) (map[string]strin
return leaders, nil
}

// to get the status of mayaserver deamon,
// TODO proper CLI command once mayaserver have it's own
func (c *ServerMembersCommand) mserverstatus() int {
// out, err := exec.Command("mayaserver", "version").Output()
// if err != nil {
// log.Fatal(err)
// }
// fmt.Printf("mayaserver is running: %s\n", out)
// return 0

var runop int = 0

c.Cmd = exec.Command("systemctl", "status", "mayaserver")
Expand Down

0 comments on commit ce83f61

Please sign in to comment.