mirror of
https://github.com/Evidlo/remarkable_printer.git
synced 2024-10-20 03:27:37 -04:00
switch to is-active
This commit is contained in:
parent
b5d8cd582f
commit
52f31746ab
2
main.go
2
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()
|
||||
|
|
Loading…
Reference in a new issue