From e220c32ba514fa015b91629017b5f5a605f193c1 Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Wed, 30 Dec 2020 17:36:08 +0100 Subject: [PATCH] =?UTF-8?q?Add=20systemctl=20support,=20patch=20from=20?= =?UTF-8?q?=C2=AB=20ganymede=20=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- probes.lisp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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