10 lines
280 B
Go
10 lines
280 B
Go
|
package ser
|
||
|
|
||
|
// ServiceManager is the common interface for service managers (systemd, init.d)
|
||
|
type ServiceManager interface {
|
||
|
// Name of executable (to check if installed and for debug)
|
||
|
Name() string
|
||
|
// Exec a specific action on a service
|
||
|
Exec(action, service string) error
|
||
|
}
|