switch to is-active

This commit is contained in:
evan 2021-03-14 17:51:13 -05:00
parent b5d8cd582f
commit 52f31746ab

View file

@ -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()