From 52f31746aba6b1716127537808c8731ef21dc5b8 Mon Sep 17 00:00:00 2001 From: evan Date: Sun, 14 Mar 2021 17:51:13 -0500 Subject: [PATCH] switch to is-active --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 6b9a96b..1921b48 100644 --- a/main.go +++ b/main.go @@ -78,7 +78,7 @@ func main() { // Restart xochitl if *restart { - _, exitcode := exec.Command("systemctl", "is-enabled", "xochitl").CombinedOutput() + _, exitcode := exec.Command("systemctl", "is-active", "xochitl").CombinedOutput() if exitcode == nil { debug("Restarting xochitl") stdout, err := exec.Command("systemctl", "restart", "xochitl").CombinedOutput()