diff --git a/probes.lisp b/probes.lisp index 5012609..53a84e7 100644 --- a/probes.lisp +++ b/probes.lisp @@ -28,8 +28,11 @@ (if (probe-file "/etc/portage/make.conf") ;; gentoo (list "/sbin/rc-service" (getf params :name) "status") - ;; other linux (this can be improved if needed) - (list "/usr/sbin/service" (getf params :name) "status")))) + ;; most linux + (if (probe-file "/usr/sbin/service") + (list "/usr/sbin/service" (getf params :name) "status") + ;; other linux with systemd only + (list "/usr/bin/systemctl" "status" (getf params :name)))))) (create-probe pid-running