(serviceName string)
| 54 | } |
| 55 | |
| 56 | func (s *Systemd) Status(serviceName string) (string, error) { |
| 57 | return run(s.toolCmd, "status", serviceName) |
| 58 | } |
| 59 | func (s *Systemd) Operate(operate, serviceName string) error { |
| 60 | out, err := run(s.toolCmd, operate, serviceName) |
| 61 | if err != nil { |