feat(services): support service timers for which a running state means waiting
This commit is contained in:
parent
14511b3201
commit
518cbed944
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ func isEnabled(name string) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func isRunning(name string) bool {
|
func isRunning(name string) bool {
|
||||||
return systemctlShow(name, "SubState") == "running"
|
value := systemctlShow(name, "SubState")
|
||||||
|
return value == "running" || value == "waiting"
|
||||||
}
|
}
|
||||||
|
|
||||||
func systemctl(name, operation string) (gonf.Status, error) {
|
func systemctl(name, operation string) (gonf.Status, error) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue