func restart(client service.Client, args ...string) error { if err := client.Restart(); err != nil { return err } fmt.Println("Process restarted with PID", client.ProcessPid()) return nil }