()
| 39 | } |
| 40 | |
| 41 | func (f *Fail2ban) Status() (bool, bool, bool) { |
| 42 | isEnable, _ := controller.CheckEnable("fail2ban.service") |
| 43 | isActive, _ := controller.CheckActive("fail2ban.service") |
| 44 | isExist, _ := controller.CheckExist("fail2ban.service") |
| 45 | |
| 46 | return isEnable, isActive, isExist |
| 47 | } |
| 48 | |
| 49 | func (f *Fail2ban) Version() string { |
| 50 | stdout, err := cmd.NewCommandMgr(cmd.WithTimeout(20*time.Second)).RunWithStdout("fail2ban-client", "version") |
nothing calls this directly
no test coverage detected